@font-face {
    font-family: "Zain";
    src: url("/fonts/Zain_Regular.otf") format("opentype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "Zain";
    src: url("/fonts/Zain_Bold.otf") format("opentype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}
@font-face {
    font-family: "Zain";
    src: url("/fonts/Zain_ExtraBold.otf") format("opentype");
    font-style: normal;
    font-weight: 800;
    font-display: swap;
}

:root {
    --bg: #020812;
    --panel: rgba(3, 18, 31, .93);
    --cyan: #06dbd7;
    --cyan-soft: rgba(6,219,215,.15);
    --cyan-border: rgba(6,219,215,.55);
    --purple: #9d42ec;
    --text: #f2f8fb;
    --muted: #91a7b9;
    --danger: #ff5477;
}

* { box-sizing: border-box; }

html, body {
    width: 100%;
    min-height: 100%;
    margin: 0;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Zain", "Segoe UI", Arial, sans-serif;
}

.login-stage {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
    padding: 42px 22px;
    background:
        radial-gradient(circle at 50% 47%, rgba(0,166,184,.085), transparent 33%),
        radial-gradient(circle at 5% 70%, rgba(0,215,212,.055), transparent 24%),
        radial-gradient(circle at 94% 72%, rgba(157,66,236,.065), transparent 24%),
        linear-gradient(180deg, #030a14, #020812 68%, #020711);
}

.login-grid {
    position: absolute;
    inset: 0;
    opacity: .18;
    background-image:
        linear-gradient(rgba(32,91,126,.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(32,91,126,.08) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(circle at center, black 5%, transparent 76%);
}

.login-glow {
    position: absolute;
    width: 420px;
    height: 420px;
    filter: blur(100px);
    border-radius: 50%;
    opacity: .08;
}
.glow-left { background: var(--cyan); left: -210px; bottom: -130px; }
.glow-right { background: var(--purple); right: -210px; bottom: -130px; }

.light-lines {
    position: absolute;
    width: 44vw;
    height: 430px;
    top: 50%;
    transform: translateY(-30%);
    opacity: .72;
    pointer-events: none;
}
.left-lines { left: -5vw; }
.right-lines { right: -5vw; transform: translateY(-30%) scaleX(-1); }

.light-lines i {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    transform-origin: left center;
    background: linear-gradient(90deg, transparent 2%, #04d8d4 24%, #365eed 57%, #9a42eb 96%);
    box-shadow: 0 0 11px rgba(17,190,215,.24);
}
.light-lines i:nth-child(1) { top: 10%; transform: rotate(16deg); }
.light-lines i:nth-child(2) { top: 27%; transform: rotate(9deg); opacity: .62; }
.light-lines i:nth-child(3) { top: 45%; transform: rotate(4deg); opacity: .48; }
.light-lines i:nth-child(4) { top: 63%; transform: rotate(-4deg); opacity: .7; }
.light-lines i:nth-child(5) { top: 81%; transform: rotate(-11deg); opacity: .8; }

.login-card {
    position: relative;
    z-index: 4;
    width: min(720px, calc(100vw - 36px));
    min-height: 760px;
    padding: 52px 72px 36px;
    border: 1px solid var(--cyan-border);
    border-radius: 28px;
    background:
        radial-gradient(circle at 50% 0, rgba(0,215,212,.045), transparent 32%),
        linear-gradient(145deg, rgba(4,22,37,.965), rgba(2,13,25,.975));
    box-shadow:
        0 32px 100px rgba(0,0,0,.48),
        inset 0 0 0 1px rgba(255,255,255,.012),
        0 0 45px rgba(0,215,212,.035);
}

.login-logo-wrap {
    min-height: 84px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
}
.login-logo {
    width: 305px;
    max-width: 78%;
    max-height: 92px;
    object-fit: contain;
}

.login-heading {
    text-align: center;
}
.eyebrow {
    color: #6a8294;
    font-size: 12px;
    letter-spacing: 1.6px;
    font-weight: 700;
}
.login-heading h1 {
    margin: 11px 0 3px;
    color: var(--cyan);
    font-size: 38px;
    line-height: 1.05;
    font-weight: 700;
}
.login-heading p {
    margin: 0;
    color: #a6b7c4;
    font-size: 17px;
}
.heading-rule {
    width: 75px;
    height: 2px;
    margin: 24px auto 34px;
    background: var(--cyan);
    box-shadow: 0 0 14px rgba(0,215,212,.35);
}

.login-form {
    display: grid;
    gap: 22px;
}

.login-field {
    height: 72px;
    display: grid;
    grid-template-columns: 40px 1fr 38px;
    align-items: center;
    padding: 0 20px;
    border: 1px solid rgba(63,126,163,.42);
    border-radius: 13px;
    background: rgba(2,15,27,.7);
    transition: border-color .16s, box-shadow .16s;
}
.login-field:focus-within {
    border-color: rgba(6,219,215,.78);
    box-shadow: 0 0 0 3px rgba(6,219,215,.055), inset 0 0 20px rgba(6,219,215,.025);
}

.field-icon {
    color: var(--cyan);
    font-size: 21px;
}
.login-field input {
    width: 100%;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #eef7fb;
    font-family: inherit;
    font-size: 20px;
}
.login-field input::placeholder { color: #a1b0bc; }

.password-toggle {
    width: 36px;
    height: 36px;
    border: 0;
    cursor: pointer;
    background: transparent;
    color: #a3b6c6;
    font-size: 20px;
}

.sign-in-button {
    height: 68px;
    margin-top: 8px;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 0 24px;
    color: #031018;
    background: linear-gradient(90deg, #06dcd7, #11ccd3 58%, #10aeca);
    font-family: inherit;
    font-size: 22px;
    font-weight: 800;
    box-shadow: 0 10px 30px rgba(0,203,209,.12);
    transition: transform .14s, box-shadow .14s;
}
.sign-in-button span { justify-self: center; margin-left: 22px; }
.sign-in-button b { font-size: 24px; }
.sign-in-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 35px rgba(0,203,209,.2);
}

.login-error {
    min-height: 58px;
    margin: -12px 0 20px;
    padding: 10px 14px;
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 8px;
    align-items: center;
    border: 1px solid rgba(255,84,119,.38);
    border-radius: 10px;
    background: rgba(255,84,119,.07);
    color: #ffdbe3;
}
.login-error > span { color: var(--danger); }
.login-error strong { display: block; font-size: 14px; }
.login-error small { color: #d8aeb8; font-size: 12px; }

.secure-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 17px;
    align-items: center;
    margin: 35px 0 32px;
}
.secure-divider span {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(6,219,215,.45));
}
.secure-divider span:last-child { transform: scaleX(-1); }
.secure-divider strong {
    color: var(--cyan);
    font-size: 13px;
    letter-spacing: 1.7px;
}

.login-security {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 13px;
    align-items: center;
    width: max-content;
    max-width: 100%;
    margin: 0 auto;
}
.shield {
    width: 42px;
    height: 48px;
    display: grid;
    place-items: center;
    color: var(--cyan);
    border: 1px solid rgba(6,219,215,.55);
    border-radius: 18px 18px 22px 22px;
    font-size: 21px;
}
.login-security strong {
    display: block;
    color: #f1f6f9;
    font-size: 17px;
}
.login-security span {
    display: block;
    color: #91a5b4;
    font-size: 14px;
    margin-top: 2px;
}

.login-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 40px;
    padding-top: 15px;
    border-top: 1px solid rgba(50,102,134,.18);
    color: #516a7c;
    font-size: 9px;
    letter-spacing: .8px;
}

@media (max-width: 760px) {
    .login-card {
        padding: 40px 25px 28px;
        min-height: auto;
    }
    .login-logo { width: 245px; }
    .login-heading h1 { font-size: 34px; }
    .login-heading p { font-size: 15px; }
    .light-lines { opacity: .32; }
}
