/* ===== Auth Modal ===== */
.auth-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 61, 78, 0.55);
    backdrop-filter: blur(6px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}
.auth-modal-overlay.active {
    display: flex;
}
.auth-modal {
    background: #ffffff;
    border-radius: 20px;
    padding: 44px 40px;
    max-width: 420px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
}
@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.auth-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 26px;
    color: #7a9a9e;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}
.auth-modal-close:hover {
    color: #1a3d4e;
}
.auth-modal-header {
    text-align: center;
    margin-bottom: 28px;
}
.auth-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a3d4e;
    margin-bottom: 6px;
}
.auth-subtitle {
    font-size: 14px;
    color: #7a9a9e;
}
.auth-view {
    display: none;
}
.auth-view.active {
    display: block;
}
.auth-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1a3d4e;
    margin-bottom: 6px;
}
.auth-field input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #dce6e8;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: #1a3d4e;
    transition: border-color 0.2s ease;
    background: #f8fafa;
}
.auth-field input:focus {
    outline: none;
    border-color: #5fb8b0;
    background: #ffffff;
}
.auth-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #2d6078 0%, #3a7a92 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 6px;
}
.auth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45, 96, 120, 0.3);
}
.auth-links {
    text-align: center;
    margin-top: 20px;
}
.auth-switch-text {
    font-size: 13px;
    color: #7a9a9e;
    margin-top: 8px;
}
.auth-switch-btn {
    background: none;
    border: none;
    color: #2d6078;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: color 0.2s ease;
}
.auth-switch-btn:hover {
    color: #5fb8b0;
    text-decoration: underline;
}
@media (max-width: 600px) {
    .auth-modal {
        max-width: 100%;
        margin: 12px;
        padding: 36px 24px 28px;
        border-radius: 16px;
    }
}
/* ===== Profile Dropdown ===== */
.profile-dropdown {
    position: relative;
}
/* Hide mobile profile items on desktop, hide dropdown on mobile */
.mobile-profile-item,
.mobile-profile-divider {
    display: none !important;
}
@media (max-width: 968px) {
    .profile-dropdown {
        display: none !important;
    }
    .mobile-profile-divider {
        display: block !important;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        margin: 12px 20px;
        padding: 0 !important;
    }
    .mobile-profile-item {
        display: block !important;
    }
    .mobile-profile-item .nav-link {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .mobile-profile-item .nav-link svg {
        flex-shrink: 0;
    }
    .mobile-logout-link {
        color: #f87171 !important;
    }
}
.btn-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #2d6078 0%, #3a7a92 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-profile:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45, 96, 120, 0.3);
}
.dropdown-arrow {
    transition: transform 0.2s ease;
}
.profile-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}
.profile-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 210px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 6px;
    z-index: 1000;
    animation: dropdownFadeIn 0.2s ease;
}
.profile-dropdown.active .profile-dropdown-menu {
    display: block;
}
@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    color: #1a3d4e;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: background 0.15s ease;
}
.dropdown-item:hover {
    background: #f0f7f8;
}
.dropdown-item-logout {
    color: #dc2626;
}
.dropdown-item-logout:hover {
    background: #fef2f2;
}
.dropdown-divider {
    border: none;
    border-top: 1px solid #e8eeef;
    margin: 4px 10px;
}
/* ===== Auth Checkbox ===== */
.auth-checkbox-field {
    margin-bottom: 18px;
}
.auth-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    font-weight: 400;
    color: #1a3d4e;
    cursor: pointer;
    line-height: 1.5;
}
.auth-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #2d6078;
    flex-shrink: 0;
    cursor: pointer;
}
.auth-checkbox-label a {
    color: #2d6078;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}
.auth-checkbox-label a:hover {
    color: #5fb8b0;
    text-decoration: underline;
}
/* ===== Activate / Reset Account Card ===== */
.activate-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px 80px;
}

.activate-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 50px 44px;
    max-width: 460px;
    width: 100%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(26, 61, 78, 0.08);
    animation: modalSlideIn 0.4s ease;
}

.activate-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.activate-icon-success {
    background: #f0fdf4;
    color: #16a34a;
}

.activate-icon-error {
    background: #fef2f2;
    color: #dc2626;
}

.activate-icon-form {
    background: #f0f7fa;
    color: #2d6078;
}

.activate-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a3d4e;
    margin-bottom: 12px;
}

.activate-message {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 32px;
}

.activate-message-success {
    color: #16a34a;
}

.activate-message-error {
    color: #7a9a9e;
}

.activate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    padding: 14px 32px;
    text-decoration: none;
    font-size: 15px;
}

.reset-pw-form {
    text-align: left;
    margin-bottom: 8px;
}

.reset-pw-form .auth-field {
    margin-bottom: 18px;
}

@media (max-width: 600px) {
    .activate-card {
        padding: 40px 24px;
        border-radius: 16px;
    }
    .activate-icon {
        width: 64px;
        height: 64px;
    }
    .activate-icon svg {
        width: 36px;
        height: 36px;
    }
}

/* ===== Auth Messages ===== */
.auth-message {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
    text-align: center;
}
.auth-message:not(:empty) { display: block; }
.auth-message.error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.auth-message.warning { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }
.auth-message.success { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
