/* =========================================================
   CINEMATIC LOGIN
   ========================================================= */

.login-dark {
    --accent: #E50815;
    --accent-2: #8b0d15;
    --white: #fff;
    --muted: rgba(255,255,255,.55);

    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 40px 7vw;

    overflow: hidden;
    background: #050505;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        sans-serif;

    box-sizing: border-box;
}

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


/* =========================================================
   BACKGROUND
   ========================================================= */

.background-video {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    filter:
        brightness(.42)
        contrast(1.12)
        saturate(.9)
        blur(1px);

    transform: scale(1.03);

    z-index: 0;
}


/* cinematic gradients */

.overlay {
    position: absolute;
    inset: 0;
    z-index: 1;

    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,.92) 0%,
            rgba(0,0,0,.72) 35%,
            rgba(0,0,0,.30) 65%,
            rgba(0,0,0,.75) 100%
        ),
        linear-gradient(
            0deg,
            rgba(0,0,0,.88) 0%,
            transparent 45%,
            rgba(0,0,0,.30) 100%
        );
}


/* orange atmospheric glow */

.login-dark::before {
    content: "";

    position: absolute;

    width: 650px;
    height: 650px;

    right: -250px;
    top: 50%;

    transform: translateY(-50%);

    background: var(--accent);

    opacity: .12;

    filter: blur(150px);

    border-radius: 50%;

    z-index: 1;

    pointer-events: none;
}

/* =========================================================
   LOGIN CARD
   ========================================================= */

.login-card {
    position: relative;

    z-index: 5;

    width: min(440px, 100%);

    padding: 42px;

    border-radius: 28px;

    color: white;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.13),
            rgba(255,255,255,.045)
        );

    border: 1px solid rgba(255,255,255,.14);

    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);

    box-shadow:
        0 40px 100px rgba(0,0,0,.65),
        inset 0 1px 0 rgba(255,255,255,.12);

    animation: loginCardIn .8s cubic-bezier(.2,.8,.2,1);
}

@keyframes loginCardIn {
    from {
        opacity: 0;
        transform: translateY(25px) scale(.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* orange line on top */

.login-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 12%;
    right: 12%;

    height: 2px;

    background: linear-gradient(
        90deg,
        transparent,
        var(--accent),
        var(--accent-2),
        transparent
    );

    box-shadow:
        0 0 25px rgba(255,80,0,.8);
}


/* =========================================================
   LOGO
   ========================================================= */

.login-logo {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 30px;

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            var(--accent),
            var(--accent-2)
        );

    font-size: 21px;
    color: white;
}


/* =========================================================
   TYPOGRAPHY
   ========================================================= */

.login-card .headline {
    margin: 0 0 8px;

    font-size: 34px;
    line-height: 1.1;

    letter-spacing: -1.5px;

    font-weight: 800;
}

.login-card .subtitle {
    margin: 0 0 32px;

    color: var(--muted);

    font-size: 14px;
    line-height: 1.6;
}


/* =========================================================
   ERROR
   ========================================================= */

.login-card .error {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 20px;
    padding: 12px 14px;

    border-radius: 12px;

    background: rgba(255,45,45,.10);

    border: 1px solid rgba(255,70,70,.25);

    color: #ff7272;

    font-size: 13px;
}


/* =========================================================
   INPUTS
   ========================================================= */

.form-group {
    position: relative;

    margin-bottom: 14px;
}

.form-group i {
    position: absolute;

    left: 16px;
    top: 50%;

    transform: translateY(-50%);

    color: rgba(255,255,255,.35);

    pointer-events: none;

    transition: .25s ease;
}

.login-card input[type="email"],
.login-card input[type="password"] {
    width: 100%;
    height: 54px;
    margin: 0;
    padding: 0 16px 0 26px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.10);
    outline: none;

    background: rgba(0,0,0,.25);

    color: white;

    font-size: 14px;

    transition:
        border-color .25s ease,
        background .25s ease,
        box-shadow .25s ease;
}

.login-card input::placeholder {
    color: rgba(255,255,255,.35);
}

.login-card input:hover {
    border-color: rgba(255,255,255,.18);
}

.login-card input:focus {
    border-color: rgba(255,106,0,.65);

    background: rgba(0,0,0,.38);

    box-shadow:
        0 0 0 4px rgba(255,106,0,.08),
        0 8px 25px rgba(0,0,0,.15);
}

.form-group:focus-within i {
    color: var(--accent);
}


/* =========================================================
   OPTIONS
   ========================================================= */

.login-card .options {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin: 4px 0 24px;

    font-size: 12px;

    color: rgba(255,255,255,.55);
}

.login-card .options label {
    display: flex;
    align-items: center;
    gap: 8px;

    cursor: pointer;
}

.login-card .options input {
    width: 15px;
    height: 15px;

    margin: 0;

    accent-color: var(--accent);

    cursor: pointer;
}


/* =========================================================
   BUTTON
   ========================================================= */

.login-card .btn-primary {
    position: relative;

    width: 100%;
    height: 56px;

    border: 0;
    border-radius: 15px;

    cursor: pointer;

    overflow: hidden;

    background:
        linear-gradient(
            100deg,
            var(--accent),
            var(--accent-2)
        );

    color: white;

    font-size: 14px;
    font-weight: 800;

    letter-spacing: .2px;

    box-shadow:
        0 12px 30px rgba(255,65,0,.28);

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        filter .25s ease;
}

.login-card .btn-primary::before {
    content: "";

    position: absolute;

    top: 0;
    left: -100%;

    width: 60%;
    height: 100%;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,.35),
        transparent
    );

    transform: skewX(-20deg);

    transition: left .6s ease;
}

.login-card .btn-primary:hover {
    transform: translateY(-2px);

    filter: brightness(1.08);

    box-shadow:
        0 18px 40px rgba(255,65,0,.38);
}

.login-card .btn-primary:hover::before {
    left: 150%;
}

.login-card .btn-primary:active {
    transform: translateY(0);
}


/* =========================================================
   DIVIDER
   ========================================================= */

.login-divider {
    display: flex;
    align-items: center;
    gap: 14px;

    margin: 26px 0;

    color: rgba(255,255,255,.25);

    font-size: 11px;
}

.login-divider::before,
.login-divider::after {
    content: "";

    flex: 1;

    height: 1px;

    background: rgba(255,255,255,.10);
}


/* =========================================================
   SOCIAL BUTTON
   ========================================================= */

.social-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    width: 100%;
    height: 50px;

    border-radius: 13px;

    border: 1px solid rgba(255,255,255,.10);

    background: rgba(255,255,255,.04);

    color: white;

    text-decoration: none;

    font-size: 13px;
    font-weight: 600;

    transition: .25s ease;
}

.social-login:hover {
    background: rgba(255,255,255,.08);

    border-color: rgba(255,255,255,.18);

    transform: translateY(-1px);
}


/* =========================================================
   FORGOT
   ========================================================= */

.login-card .forgot {
    display: block;

    margin-top: 24px;

    text-align: center;

    color: rgba(255,255,255,.45);

    font-size: 12px;

    text-decoration: none;

    transition: color .2s ease;
}

.login-card .forgot:hover {
    color: white;
}


/* =========================================================
   FOOTER
   ========================================================= */

.login-footer {
    position: absolute;

    left: 7vw;
    bottom: 35px;

    z-index: 4;

    color: rgba(255,255,255,.25);

    font-size: 10px;

    letter-spacing: .5px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 900px) {

    .login-dark {
        justify-content: center;

        padding: 25px;
    }

    .login-brand {
        display: none;
    }

    .login-footer {
        display: none;
    }

    .overlay {
        background:
            linear-gradient(
                180deg,
                rgba(0,0,0,.55),
                rgba(0,0,0,.88)
            );
    }

    .login-card {
        width: min(440px, 100%);

        padding: 34px 26px;

        border-radius: 24px;
    }
}

@media (max-width: 480px) {

    .login-dark {
        padding: 16px;
    }

    .login-card {
        padding: 30px 22px;
    }

    .login-card .headline {
        font-size: 29px;
    }
}