/* Authentication Modal Styles */
:root {
    --modal-bg: #ffffff;
    --modal-shadow: rgba(0, 0, 0, 0.1);
    --modal-border: #e5e5e5;
    --input-border: #e0e0e0;
    --input-focus: #d1af94;
    --text-color: #3a3a3a;
    --text-muted: #6e6e6e;
    --error-color: #e53935;
    --success-color: #4caf50;
    --primary-color: #d1af94;
    --primary-light: #f6e5d9;
    --primary-dark: #998b81;
    --transition-speed: 0.3s;
}

/* Modal Base */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-speed), visibility var(--transition-speed);
}

.auth-modal.active {
    opacity: 1;
    visibility: visible;
}

.auth-modal__content {
    position: relative;
    width: 100%;
    max-width: 420px;
    background-color: var(--modal-bg);
    border-radius: 12px;
    box-shadow: 0 8px 24px var(--modal-shadow);
    padding: 32px;
    transform: translateY(20px);
    opacity: 0;
    transition: transform var(--transition-speed), opacity var(--transition-speed);
}

.auth-modal.active .auth-modal__content {
    transform: translateY(0);
    opacity: 1;
}

.auth-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-speed);
}

.auth-modal__close:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--text-color);
}

/* Tabs */
.auth-modal__tabs {
    display: flex;
    border-bottom: 1px solid var(--modal-border);
    margin-bottom: 24px;
}

.auth-modal__tab {
    flex: 1;
    background: none;
    border: none;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    transition: color var(--transition-speed);
}

.auth-modal__tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform var(--transition-speed);
}

.auth-modal__tab.active {
    color: var(--primary-color);
}

.auth-modal__tab.active::after {
    transform: scaleX(1);
}

.auth-modal__tab:hover {
    color: var(--primary-color);
}

/* Forms */
.auth-modal__form-container {
    position: relative;
    overflow: hidden;
}

.auth-modal__form {
    display: none;
    transition: transform var(--transition-speed), opacity var(--transition-speed);
}

.auth-modal__form.active {
    display: block;
    animation: fadeIn 0.3s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.auth-modal__form h2 {
    font-size: 24px;
    margin-bottom: 24px;
    font-weight: 600;
    color: var(--text-color);
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--input-border);
    border-radius: 6px;
    font-size: 15px;
    color: var(--text-color);
    background-color: var(--modal-bg);
    transition: border-color var(--transition-speed);
}

.form-group input:focus {
    outline: none;
    border-color: var(--input-focus);
}

.password-group {
    position: relative;
}

.password-input-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-icon-show,
.password-icon-hide {
    width: 20px;
    height: 20px;
}

.password-icon-show {
    display: block;
}

.password-icon-hide {
    display: none;
}

.toggle-password.show-password .password-icon-show {
    display: none;
}

.toggle-password.show-password .password-icon-hide {
    display: block;
}

.error-message {
    display: block;
    color: var(--error-color);
    font-size: 13px;
    margin-top: 5px;
    min-height: 20px;
}

.btn--full {
    width: 100%;
    text-align: center;
}

.btn--primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color var(--transition-speed);
}

.btn--primary:hover {
    background-color: var(--primary-dark);
}

.btn--primary:disabled {
    background-color: var(--text-muted);
    cursor: not-allowed;
}

.auth-links {
    display: flex;
    justify-content: flex-end;
    margin-top: -10px;
    margin-bottom: 16px;
}

.forgot-password {
    color: var(--primary-color);
    font-size: 14px;
    text-decoration: none;
    transition: color var(--transition-speed);
}

.forgot-password:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.auth-modal__form-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-muted);
}

.switch-form {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-speed);
}

.switch-form:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.auth-modal__error {
    display: none;
    background-color: rgba(229, 57, 53, 0.1);
    border-left: 3px solid var(--error-color);
    color: var(--error-color);
    padding: 10px 12px;
    border-radius: 4px;
    margin-top: 16px;
    font-size: 14px;
}

/* User Dropdown */
.user-dropdown {
    position: relative;
    display: none;
}

.user-dropdown__toggle {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 20px;
    transition: background-color var(--transition-speed);
}

.user-dropdown__toggle:hover {
    background-color: var(--primary-light);
}

.user-dropdown__email {
    margin-right: 5px;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-dropdown__menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 180px;
    display: none;
    overflow: hidden;
    z-index: 100;
    margin-top: 10px;
}

.user-dropdown.active .user-dropdown__menu {
    display: block;
    animation: fadeInDropdown 0.2s forwards;
}

@keyframes fadeInDropdown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-dropdown__item {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 14px;
    border-bottom: 1px solid var(--modal-border);
    transition: background-color var(--transition-speed);
    text-align: left;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
}

.user-dropdown__item:last-child {
    border-bottom: none;
}

.user-dropdown__item:hover {
    background-color: var(--primary-light);
}

.user-dropdown__logout {
    color: var(--error-color);
}

.login-button {
    transition: color var(--transition-speed);
}

.login-button:hover {
    color: var(--primary-color);
}

/* Responsive Styles */
@media (max-width: 480px) {
    .auth-modal__content {
        max-width: 90%;
        padding: 24px 20px;
    }
    
    .auth-modal__form h2 {
        font-size: 20px;
    }
    
    .form-group input {
        padding: 10px 12px;
    }
} 