/* ================================================
   Auth Layout — shared by login & register pages
   ================================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: 'Poppins', system-ui, sans-serif;
}

/* Override AdminLTE dark body */
html {
    background: #009dff !important;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #009dff !important;
    position: relative;
}

/* Dot grid overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.8) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

/* Navbar */
.auth-navbar {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
}

.auth-navbar-left,
.auth-navbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.auth-navbar a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.4rem 0.875rem;
    border-radius: 0.5rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.auth-navbar a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

/* Language dropdown items */
.auth-navbar .change_lang {
    color: #1e293b !important;
    font-weight: 500;
}

.auth-navbar .change_lang:hover {
    background: #f1f5f9 !important;
    color: #009dff !important;
}

.auth-register-btn {
    border: 1.5px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 9999px !important;
    padding: 0.4rem 1.25rem !important;
}

.auth-register-btn:hover {
    background: white !important;
    color: #009dff !important;
}

/* Main content wrapper */
.auth-container {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem 3rem;
}

/* Logo above card */
.auth-brand {
    margin-bottom: 1.75rem;
    text-align: center;
}

.auth-brand img {
    height: 2.25rem;
    width: auto;
}

#status_span { display: none; }

@media (max-width: 640px) {
    .auth-navbar {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
    }

    .auth-navbar-left,
    .auth-navbar-right {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .auth-container {
        padding: 1.5rem 1rem 2.5rem;
    }
}
