/* Authentication Modal Styles */

.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.auth-modal.hidden {
    display: none;
}

.auth-modal-content {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    position: relative;
}

.auth-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.auth-close:hover {
    background-color: #f0f0f0;
}

.auth-form {
    margin-top: 1rem;
}

.auth-form.hidden {
    display: none;
}

.auth-form h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #111;
}

.auth-form-group {
    margin-bottom: 1rem;
}

.auth-form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #333;
}

.auth-form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.auth-form-group input:focus {
    outline: none;
    border-color: #000;
}

.auth-error {
    background-color: #fee;
    color: #c33;
    padding: 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.auth-error.auth-success {
    background-color: #ecfdf3;
    color: #166534;
}

.auth-error.hidden {
    display: none;
}

.auth-submit {
    width: 100%;
    background-color: #000;
    color: white;
    padding: 0.875rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.auth-submit:hover {
    background-color: #333;
}

.auth-forgot {
    text-align: right;
    margin-bottom: 1rem;
}

.auth-forgot button {
    background: none;
    border: none;
    color: #555;
    font-size: 0.8125rem;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.auth-forgot button:hover {
    color: #000;
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: #666;
}

.auth-switch button {
    background: none;
    border: none;
    color: #000;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    margin-left: 0.25rem;
}

.auth-switch button:hover {
    color: #333;
}

/* Account Dropdown */
.account-dropdown {
    position: relative;
    display: inline-block;
}

.account-dropdown-btn {
    background: black;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.account-dropdown-btn:hover {
    background: #333;
}

.account-dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
}

.account-dropdown-menu.hidden {
    display: none;
}

.account-dropdown-menu a,
.account-dropdown-menu button {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    text-align: left;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.875rem;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s;
}

.account-dropdown-menu a:hover,
.account-dropdown-menu button:hover {
    background-color: #f5f5f5;
}

.account-dropdown-menu button {
    border-top: 1px solid #eee;
    color: #c33;
    font-weight: 500;
}
