/* ════════════════════════════════════════════════════════
   AUTH CSS (Login, Signup, Register)
   OCEAN CAMPUS SYSTEM
   ════════════════════════════════════════════════════════ */

.auth-page {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 6rem 2rem;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    overflow-x: hidden;
    font-family: var(--f-sans);
}

/* Page Specific Backgrounds */
.auth-page.login-bg,
.auth-page.signup-bg {
    background-image: url('../assets/images/auth/auth_bg_general.png');
}

.auth-page.seller-bg {
    background-image: url('../assets/images/auth/auth_bg_seller.png');
}

.auth-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
                rgba(15, 23, 42, 0.4) 0%, 
                rgba(15, 23, 42, 0.7) 40%, 
                rgba(15, 23, 42, 0.9) 100%);
    z-index: 1;
}

.auth-container {
    position: relative;
    width: 100%;
    max-width: 450px;
    z-index: 2;
    text-align: center;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Glassmorphism Card */
.auth-card-premium {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    padding: 3.5rem 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.floating-back-btn {
    position: fixed;
    top: 2.5rem;
    left: 2.5rem;
    color: var(--white);
    z-index: 100;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.6;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
}

.floating-back-btn:hover {
    opacity: 1;
    transform: translateX(-5px);
}

.auth-header-content {
    margin-bottom: 3rem;
}

.auth-title {
    font-family: var(--f-heading);
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    color: var(--white);
    text-transform: uppercase;
}

.auth-subtitle {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    max-width: 300px;
    margin: 0 auto;
    font-weight: 400;
}

/* Minimal Form Styling */
.form-group-minimal {
    position: relative;
    margin-bottom: 2.25rem;
    display: flex;
    align-items: center;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.2);
    transition: border-color 0.3s var(--ease-out);
}

.form-group-minimal:focus-within {
    border-bottom-color: var(--white);
}

.input-icon {
    margin-right: 1.25rem;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
}

.form-group-minimal:focus-within .input-icon {
    color: var(--white);
}

.form-group-minimal input,
.form-group-minimal select,
.form-group-minimal textarea {
    flex: 1;
    background: transparent !important;
    border: none !important;
    padding: 0.85rem 0 !important;
    color: var(--white) !important;
    font-size: 1.05rem !important;
    font-family: var(--f-sans) !important;
    border-radius: 0 !important;
    outline: none !important;
}

.form-group-minimal input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.toggle-password {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s;
}

.toggle-password:hover {
    color: var(--white);
}

.form-actions-minimal {
    text-align: right;
    margin-bottom: 2.5rem;
}

.forgot-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s;
}

.forgot-link:hover {
    color: var(--white);
}

/* Premium Button Overrides */
.btn-auth {
    background: var(--blue) !important;
    color: var(--white) !important;
    border-radius: 99px !important;
    padding: 1.1rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    width: 100% !important;
    margin-bottom: 1.5rem !important;
    box-shadow: 0 10px 20px rgba(30, 64, 175, 0.3) !important;
    transition: all 0.4s var(--ease-out) !important;
}

.btn-auth:hover {
    background: var(--blue-deep) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 30px rgba(30, 64, 175, 0.4) !important;
}

.btn-auth.is-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-auth.is-loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: -10px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: auth-spin 0.8s linear infinite;
}

@keyframes auth-spin {
    to { transform: rotate(360deg); }
}

.auth-footer-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
}

.auth-footer-text a {
    color: var(--white);
    font-weight: 700;
    margin-left: 0.5rem;
    transition: opacity 0.3s;
}

.auth-footer-text a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Tabs for Login/Signup toggles */
.auth-tabs-premium {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.4rem;
    border-radius: 99px;
    margin-bottom: 2.5rem;
    gap: 0.4rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-tab-btn {
    flex: 1;
    padding: 0.75rem;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    border-radius: 99px;
    transition: all 0.3s var(--ease-out);
}

.auth-tab-btn.active {
    background: var(--white);
    color: var(--blue-deep);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Seller Registration Section Specifics */
.registration-form-premium {
    text-align: left;
}

.form-section-title {
    font-family: var(--f-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--white);
    margin: 2.5rem 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.form-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

/* Notification / Toast (Aligned with global.js showNotification) */
.notification.alert {
    position: fixed;
    top: 2rem !important;
    right: 2rem !important;
    padding: 1.25rem 2.5rem !important;
    border-radius: 99px !important;
    background: var(--blue) !important;
    color: var(--white) !important;
    font-family: var(--f-heading) !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    z-index: 10000 !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    border: none !important;
    animation: slideInRight 0.5s var(--ease-out) forwards !important;
}

.notification.alert-error {
    background: var(--error) !important;
}

.notification.alert-success {
    background: var(--success) !important;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeInUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Responsive */
@media (max-width: 600px) {
    .auth-page {
        padding: 4rem 1.5rem;
    }
    
    .auth-card-premium {
        padding: 2.5rem 1.75rem;
    }

    .floating-back-btn {
        top: 1.5rem;
        left: 1.5rem;
        width: 3rem;
        height: 3rem;
    }

    .auth-title {
        font-size: 1.8rem;
    }
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Navbar Auth Overrides - Translucent glassy on scroll */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(25px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(180%) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 1rem 0 !important;
}

.navbar.scrolled .logo,
.navbar.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
}

.navbar.scrolled .hamburger span {
    background: #fff !important;
}

.navbar.scrolled .nav-link:hover {
    color: #fff !important;
}

/* ─────────────────────────────────────────────────────
   AUTH MODAL STYLING
   ───────────────────────────────────────────────────── */
.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.auth-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.auth-modal-container {
    position: relative;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 440px;
    border-radius: 2rem;
    padding: 3rem 2.25rem;
    color: var(--white);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    z-index: 2;
    animation: modalScaleUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalScaleUp {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.auth-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
}

.auth-modal-close:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.auth-modal-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.auth-modal-icon {
    font-size: 3.5rem;
    color: var(--blue);
    margin-bottom: 1.5rem;
    animation: pulseIcon 2.5s infinite ease-in-out;
}

@keyframes pulseIcon {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.05); opacity: 1; color: #60a5fa; }
}

.auth-modal-title {
    font-family: var(--f-heading);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--white);
}

.auth-modal-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.auth-modal-alert {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 1.25rem;
    padding: 1.1rem;
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    text-align: left;
    margin-bottom: 2rem;
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
}

.auth-modal-alert i {
    color: #f59e0b;
    font-size: 1.25rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.auth-modal-alert strong {
    color: #fbcfe8;
    font-weight: 700;
}

