/* Authentication Page Styles */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #FAF9F7 0%, #E8F0EE 100%);
}

.auth-content {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.auth-header {
    margin-bottom: 32px;
}

.logo-auth {
    width: 100px;
    height: auto;
}

.auth-title {
    font-size: 26px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 15px;
    color: #666;
    margin-bottom: 24px;
}

/* Auth Message */
.auth-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
}

.auth-message.error {
    display: block;
    background-color: #FEE2E2;
    color: #DC2626;
    border: 1px solid #FECACA;
}

.auth-message.success {
    display: block;
    background-color: #D1FAE5;
    color: #059669;
    border: 1px solid #A7F3D0;
}

/* Auth Form */
.auth-form {
    background-color: #FFF;
    padding: 28px 24px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

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

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #E0E0E0;
    border-radius: 10px;
    font-size: 16px;
    color: #333;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #5A9A95;
    box-shadow: 0 0 0 3px rgba(90, 154, 149, 0.15);
}

.form-group input::placeholder {
    color: #AAA;
}

.form-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    text-align: left;
}

/* Auth Button */
.auth-button {
    width: 100%;
    padding: 16px 24px;
    background-color: #5A9A95;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-button:hover {
    background-color: #4A8A85;
    transform: translateY(-1px);
}

.auth-button:active {
    transform: translateY(0);
}

.auth-button:disabled {
    background-color: #A0C4C1;
    cursor: not-allowed;
    transform: none;
}

.auth-button .btn-loading.hidden,
.auth-button .btn-text.hidden {
    display: none;
}

/* Forgot Password Link */
.forgot-password-link {
    display: block;
    margin-top: 16px;
    background: none;
    border: none;
    color: #5A9A95;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

/* Back to Login Link */
.back-to-login-link {
    display: block;
    margin-top: 16px;
    background: none;
    border: none;
    color: #666;
    font-size: 14px;
    cursor: pointer;
}

.back-to-login-link:hover {
    color: #5A9A95;
}

/* Auth Toggle */
.auth-toggle {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

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

.toggle-link {
    background: none;
    border: none;
    color: #5A9A95;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-left: 4px;
}

.toggle-link:hover {
    text-decoration: underline;
}

/* Skip Link */
.skip-link {
    display: inline-block;
    font-size: 14px;
    color: #999;
    text-decoration: none;
}

.skip-link:hover {
    color: #666;
    text-decoration: underline;
}

/* User Menu (for when logged in) */
.user-menu {
    position: relative;
}

.user-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.user-button:hover {
    background-color: rgba(90, 154, 149, 0.1);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #5A9A95;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}

.user-name {
    font-size: 14px;
    color: #333;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background-color: #FFF;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    z-index: 100;
    display: none;
}

.user-dropdown.show {
    display: block;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 12px 16px;
    text-align: left;
    background: none;
    border: none;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.dropdown-item:first-child {
    border-radius: 10px 10px 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 10px 10px;
}

.dropdown-item:hover {
    background-color: #F5F5F5;
}

.dropdown-item.logout {
    color: #DC2626;
}

.dropdown-divider {
    height: 1px;
    background-color: #E8E8E8;
    margin: 4px 0;
}

/* Responsive */
@media (max-width: 480px) {
    .auth-page {
        padding: 24px 16px;
    }

    .auth-content {
        max-width: 100%;
    }

    .logo-auth {
        width: 80px;
    }

    .auth-title {
        font-size: 24px;
    }

    .auth-form {
        padding: 24px 20px;
    }

    .form-group input {
        padding: 12px 14px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .auth-button {
        padding: 14px 20px;
    }
}

/* Hidden utility class */
.hidden {
    display: none !important;
}
