/* ==============================================
   AUTH.CSS — Login page styles
   (extracted from login.php inline <style>)
   ============================================== */

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

html {
    height: auto !important;
    min-height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

body.login-page-body {
    height: auto !important;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden !important;
    overflow-y: auto;
    background:
        radial-gradient(circle at top left, rgba(14, 239, 255, 0.08), transparent 28%),
        radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.16), transparent 32%),
        linear-gradient(135deg, #0b1220 0%, #111827 45%, #1f2937 100%);
}

.login-page-body::before,
.login-page-body::after {
    content: '';
    position: fixed;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.25;
    z-index: 0;
    pointer-events: none;
}

.login-page-body::before {
    top: -80px;
    left: -80px;
    background: rgba(14, 239, 255, 0.18);
}

.login-page-body::after {
    right: -80px;
    bottom: -80px;
    background: rgba(59, 130, 246, 0.20);
}

/* ---------- WRAPPER / LAYOUT ---------- */

.login-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: clamp(16px, 5vh, 48px) 20px;
    min-height: auto;
    display: flex;
    align-items: center;
}

.login-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
    gap: 24px;
    align-items: center;
    width: 100%;
}

/* ---------- LEFT BRAND COLUMN ---------- */

.login-brand {
    color: #e2e8f0;
    padding: 12px 12px 12px 4px;
}

.login-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border: 1px solid rgba(14, 239, 255, 0.28);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.55);
    color: #67e8f9;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 12px 32px rgba(2, 8, 23, 0.22);
    backdrop-filter: blur(12px);
}

.login-brand h1 {
    margin: 22px 0 16px;
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: 1.05;
    font-weight: 800;
    color: #f8fafc;
}

.login-brand p {
    max-width: 560px;
    margin: 0 0 28px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #94a3b8;
}

.brand-features {
    display: grid;
    gap: 14px;
}

.brand-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 18px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.38);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
}

.brand-feature i {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(14, 239, 255, 0.12);
    color: #67e8f9;
    font-size: 1rem;
    flex-shrink: 0;
}

.brand-feature strong {
    display: block;
    margin-bottom: 4px;
    color: #f8fafc;
    font-size: 0.98rem;
}

.brand-feature span {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.55;
}

/* ---------- RIGHT LOGIN SHELL / ORBIT ---------- */

.login-shell {
    position: relative;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    max-width: 100%;
    contain: layout;
}

.login-orbit {
    position: absolute;
    inset: 50%;
    width: 256px;
    height: 256px;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.login-orbit span {
    position: absolute;
    left: 0;
    width: 34px;
    height: 6px;
    border-radius: 999px;
    background: #29425c;
    transform-origin: 128px;
    transform: scale(1.6) rotate(calc(var(--i) * (360deg / 50)));
    animation: animateBlink 3s linear infinite;
    animation-delay: calc(var(--i) * (3s / 50));
    box-shadow: 0 0 8px rgba(14, 239, 255, 0.05);
}

@keyframes animateBlink {
    0% {
        background: #0ef;
        box-shadow: 0 0 12px rgba(14, 239, 255, 0.65);
    }
    25%, 100% {
        background: #29425c;
        box-shadow: none;
    }
}

/* ---------- LOGIN CARD ---------- */

.login-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    padding: 42px 34px 32px;
    border-radius: 32px;
    background: rgba(8, 15, 29, 0.86);
    border: 1px solid rgba(14, 239, 255, 0.18);
    box-shadow:
        0 30px 80px rgba(2, 8, 23, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(14, 239, 255, 0.05), transparent 28%, transparent 72%, rgba(59, 130, 246, 0.08));
    pointer-events: none;
}

.login-panel-header,
.login-form,
.login-meta,
.security-notice,
.login-footer-note {
    position: relative;
    z-index: 1;
}

.login-panel-header {
    text-align: center;
    margin-bottom: 28px;
}

.login-logo {
    width: 110px;
    height: 110px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    background: transparent;
    border: none;
    box-shadow: none;
}

.login-logo-img {
    width: 110px;
    height: 110px;
    object-fit: contain;
    border-radius: 18px;
}

.login-logo i {
    font-size: 2rem;
    color: #67e8f9;
}

.login-panel-header h2 {
    margin: 0 0 10px;
    font-size: 2rem;
    color: #0ef;
    font-weight: 700;
}

.login-panel-header p {
    margin: 0;
    color: #94a3b8;
    font-size: 0.97rem;
}

/* ---------- LOGIN FORM ---------- */

.login-form {
    width: 100%;
}

.input-box {
    position: relative;
    margin: 26px 0;
}

.input-box input {
    width: 100%;
    height: 56px;
    background: rgba(10, 18, 34, 0.78);
    border: 2px solid #2c4766;
    outline: none;
    border-radius: 40px;
    font-size: 1rem;
    color: #fff;
    padding: 0 52px 0 20px;
    transition: 0.35s ease;
}

.input-box input:focus,
.input-box input:valid {
    border-color: #0ef;
    box-shadow: 0 0 0 4px rgba(14, 239, 255, 0.08);
}

.input-box label {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    font-size: 0.98rem;
    color: #cbd5e1;
    pointer-events: none;
    transition: 0.35s ease;
    padding: 0 6px;
    border-radius: 999px;
}

.input-box i {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    color: #7dd3fc;
    font-size: 1rem;
}

.input-box input:focus ~ label,
.input-box input:valid ~ label {
    top: 0;
    font-size: 0.79rem;
    background: #101827;
    color: #0ef;
}

.login-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: -6px 0 20px;
    color: #94a3b8;
    font-size: 0.88rem;
}

.login-meta .status-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(14, 239, 255, 0.08);
    border: 1px solid rgba(14, 239, 255, 0.15);
    color: #a5f3fc;
}

.login-btn {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #0ef 0%, #38bdf8 55%, #2563eb 100%);
    border: none;
    outline: none;
    border-radius: 40px;
    cursor: pointer;
    font-size: 1rem;
    color: #08111f;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 18px 35px rgba(14, 239, 255, 0.22);
}

.login-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 22px 44px rgba(14, 239, 255, 0.28);
}

.login-btn:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}

.btn-ghost-blue {
    background: rgba(59,130,246,0.15);
    border: 1px solid #3b82f6;
    color: #60a5fa;
    font-weight: 500;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .15s ease, box-shadow .2s ease;
    display: block;
}
.btn-ghost-blue:hover {
    background: rgba(59,130,246,0.3);
    border-color: #60a5fa;
    color: #bfdbfe;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(59,130,246,0.25);
    text-decoration: none;
}
.btn-ghost-blue:active {
    transform: translateY(0);
    box-shadow: none;
}

.login-btn-solid {
    display: block;
    width: 100%;
    height: 50px;
    line-height: 50px;
    text-align: center;
    padding: 0 12px;
    background: linear-gradient(135deg, #0ef 0%, #38bdf8 55%, #2563eb 100%);
    border: none;
    border-radius: 40px;
    color: #08111f;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 14px 28px rgba(14,239,255,.2);
    transition: transform .2s, box-shadow .2s;
}
.login-btn-solid:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(14,239,255,.28);
    color: #08111f;
    text-decoration: none;
}

.login-btn-outline {
    display: block;
    width: 100%;
    height: 50px;
    line-height: 48px;
    text-align: center;
    padding: 0 12px;
    background: transparent;
    border: 1.5px solid #38bdf8;
    border-radius: 40px;
    color: #38bdf8;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: background .2s, color .2s;
}
.login-btn-outline:hover {
    background: rgba(14,239,255,.1);
    color: #0ef;
    text-decoration: none;
}

/* ---------- ALERTS (login-specific) ---------- */

.alert-danger {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(248, 113, 113, 0.32);
    background: rgba(127, 29, 29, 0.22);
    color: #fecaca;
    font-size: 0.93rem;
    line-height: 1.55;
}

/* ---------- SECURITY NOTICE ---------- */

.security-notice {
    margin-top: 22px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.64);
    border: 1px solid rgba(59, 130, 246, 0.22);
    color: #cbd5e1;
}

.security-notice strong {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #f8fafc;
}

.security-notice ul {
    margin: 12px 0 0;
    padding-left: 20px;
    color: #94a3b8;
}

.security-notice li + li {
    margin-top: 8px;
}

/* ---------- FOOTER NOTES ---------- */

.login-footer-note {
    margin-top: 20px;
    text-align: center;
    color: #64748b;
    font-size: 0.85rem;
}

.login-footer-note i {
    color: #0ef;
}

.login-page-footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 18px 20px 24px;
    color: #475569;
    font-size: 0.8rem;
    border-top: 1px solid rgba(148, 163, 184, 0.07);
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.login-page-footer a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}

.login-page-footer a:hover {
    color: #67e8f9;
}

.login-page-footer .footer-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

/* ==============================================
   LOGIN RESPONSIVE BREAKPOINTS
   ============================================== */

@media (max-width: 1024px) {
    .login-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .login-brand {
        text-align: center;
        padding: 0;
    }

    .login-brand p {
        margin-left: auto;
        margin-right: auto;
    }

    .login-shell {
        min-height: 560px;
    }
}

@media (max-width: 768px) {
    body.login-page-body {
        padding: 18px;
    }

    .login-shell {
        min-height: auto;
    }

    .login-orbit {
        transform: translate(-50%, -50%) scale(0.82);
    }

    .login-container {
        padding: 32px 22px 24px;
        max-width: 100%;
    }

    .login-brand h1 {
        font-size: 2.4rem;
    }

    .login-brand p,
    .brand-feature span,
    .security-notice,
    .login-meta {
        font-size: 0.9rem;
    }

    .input-box input {
        height: 52px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .login-panel-header h2 {
        font-size: 1.7rem;
    }

    .login-brand h1 {
        font-size: 2rem;
    }

    .login-meta {
        flex-direction: column;
        align-items: stretch;
    }

    .brand-feature {
        text-align: left;
    }
}

@media (max-height: 900px) {
    .login-wrapper {
        align-items: flex-start;
    }

    .login-brand h1 {
        font-size: clamp(1.6rem, 2.8vw, 2.6rem);
        margin: 12px 0 10px;
    }

    .login-brand p {
        margin-bottom: 16px;
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .brand-features { gap: 8px; }

    .brand-feature {
        padding: 10px 12px;
        border-radius: 14px;
    }

    .brand-feature i {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .brand-feature strong { font-size: 0.9rem; }
    .brand-feature span   { font-size: 0.82rem; }

    .login-container { padding: 26px 22px 20px; }

    .login-logo {
        width: 88px;
        height: 88px;
        margin-bottom: 12px;
    }

    .login-logo-img { width: 88px; height: 88px; }

    .login-panel-header { margin-bottom: 20px; }
    .login-panel-header h2 { font-size: 1.6rem; }

    .input-box { margin: 16px 0; }
    .input-box input { height: 50px; }

    .login-btn { height: 44px; }

    .security-notice {
        margin-top: 14px;
        padding: 12px 14px;
        font-size: 0.88rem;
    }

    .login-footer-note {
        margin-top: 12px;
        font-size: 0.8rem;
    }

    .login-orbit span {
        transform: scale(1.2) rotate(calc(var(--i) * (360deg / 50)));
    }
}

@media (max-height: 760px) {
    .login-layout { align-items: flex-start; }

    .login-brand h1 {
        font-size: 1.5rem;
        margin: 8px 0;
        line-height: 1.1;
    }

    .login-badge {
        padding: 7px 12px;
        font-size: 0.8rem;
    }

    .login-brand p {
        font-size: 0.85rem;
        margin-bottom: 10px;
        line-height: 1.45;
    }

    .brand-features { gap: 6px; }

    .brand-feature {
        padding: 8px 10px;
        border-radius: 12px;
    }

    .brand-feature i {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .brand-feature strong { font-size: 0.84rem; }
    .brand-feature span   { font-size: 0.78rem; }

    .login-container {
        padding: 18px 18px 14px;
        border-radius: 22px;
    }

    .login-logo {
        width: 64px;
        height: 64px;
        border-radius: 16px;
        margin-bottom: 10px;
    }

    .login-logo-img { width: 64px; height: 64px; }

    .login-logo i { font-size: 1.5rem; }

    .login-panel-header { margin-bottom: 14px; }
    .login-panel-header h2 { font-size: 1.35rem; }

    .input-box { margin: 12px 0; }

    .input-box input {
        height: 44px;
        font-size: 0.93rem;
    }

    .login-btn {
        height: 40px;
        font-size: 0.93rem;
    }

    .security-notice {
        margin-top: 10px;
        padding: 10px 12px;
        font-size: 0.82rem;
    }

    .security-notice ul { margin-top: 8px; }

    .login-footer-note {
        margin-top: 8px;
        font-size: 0.78rem;
    }

    .login-orbit span {
        transform: scale(0.9) rotate(calc(var(--i) * (360deg / 50)));
    }
}
