﻿
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
    --rsd-navy-deep: #051224;
    --rsd-navy: #0c2140;
    --rsd-navy-soft: #123661;
    --rsd-cyan: #37afe3;
    --rsd-cyan-bright: #6fd8ff;
    --rsd-mist: #f5fafd;
    --rsd-ink: #0b1c33;
    --rsd-slate: #8298b3;
}

[data-bs-theme="dark"] .rsd-login-form { background: #0e1a2c; }
[data-bs-theme="dark"] .rsd-login-input { background: #142033 !important; }

html, body {
    height: 100%;
    margin: 0;
    overflow: hidden;
}

body { background-image: none !important; }

#kt_app_root { height: 100%; }

.rsd-login {
    position: fixed;
    inset: 0;
    display: flex;
    overflow: hidden;
    font-family: "Inter", Helvetica, sans-serif;
}

.rsd-login-brand,
.rsd-login-form {
    flex: 1 1 50%;
}

/* -- Brand pane ------------------------------------------------- */
.rsd-login-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding: 4rem 4.5rem;
    background:
            radial-gradient(60% 50% at 82% 14%, rgba(55, 175, 227, .28), transparent 60%),
            linear-gradient(160deg, var(--rsd-navy-deep) 0%, var(--rsd-navy) 55%, var(--rsd-navy-soft) 100%);
    color: #fff;
}

.rsd-login-brand::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
            linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(80% 70% at 50% 30%, #000 30%, transparent 80%);
    pointer-events: none;
}

.rsd-login-mark {
    position: absolute;
    right: -8%;
    bottom: -12%;
    width: 640px;
    max-width: 70%;
    opacity: .16;
    filter: blur(.5px);
    pointer-events: none;
}

.rsd-login-back {
    position: absolute;
    top: 2.25rem;
    left: 2.25rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(6px);
    color: rgba(255, 255, 255, .82);
    font-size: .8125rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}

.rsd-login-back:hover {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .28);
    color: #fff;
}

.rsd-login-back:active { transform: translateY(1px); }

.rsd-login-back__icon {
    display: inline-block;
    transition: transform .15s ease;
}

.rsd-login-back:hover .rsd-login-back__icon { transform: translateX(-3px); }

.rsd-login-brand__content { position: relative; z-index: 1; max-width: 420px; }

.rsd-login-logo { height: 34px; margin-bottom: 3rem; }

.rsd-login-eyebrow {
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--rsd-cyan-bright);
    margin-bottom: 1rem;
}

.rsd-login-brand h1 {
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: clamp(1.9rem, 2.6vw, 2.6rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -.01em;
    margin-bottom: 1rem;
}

.rsd-login-brand p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, .68);
    margin: 0;
}

/* -- Form pane ---------------------------------------------------- */
.rsd-login-form {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rsd-mist);
    padding: 3rem 2rem;
}

.rsd-login-card { width: 100%; max-width: 380px; }

.rsd-login-kicker {
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--rsd-cyan);
    margin-bottom: .5rem;
}

.rsd-login-card h2 {
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--rsd-ink);
    margin-bottom: .5rem;
}

.rsd-login-card > p {
    color: var(--rsd-slate);
    font-size: .9375rem;
    margin-bottom: 2rem;
}

.rsd-field { margin-bottom: 1.25rem; }

.rsd-field label {
    display: block;
    font-size: .8125rem;
    font-weight: 600;
    color: var(--rsd-ink);
    margin-bottom: .4rem;
}

.rsd-login-input {
    width: 100%;
    border: 1px solid #dbe6ee;
    background: #fff;
    border-radius: .65rem;
    padding: .8rem 1rem;
    font-size: .9375rem;
    color: var(--rsd-ink);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.rsd-login-input:focus {
    outline: none;
    border-color: var(--rsd-cyan);
    box-shadow: 0 0 0 4px rgba(55, 175, 227, .15);
}

.rsd-login-submit {
    width: 100%;
    border: none;
    border-radius: .65rem;
    padding: .85rem 1rem;
    font-size: .9375rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--rsd-navy-soft), var(--rsd-cyan) 130%);
    box-shadow: 0 8px 20px -8px rgba(18, 54, 97, .55);
    transition: filter .15s ease, transform .05s ease;
}

.rsd-login-submit:hover { filter: brightness(1.06); }
.rsd-login-submit:active { transform: translateY(1px); }

.rsd-login-footer {
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .8125rem;
    color: var(--rsd-slate);
}

.rsd-login-footer a {
    color: var(--rsd-navy-soft);
    font-weight: 600;
    text-decoration: none;
}

.rsd-login-footer a:hover { color: var(--rsd-cyan); }

@media (max-width: 991.98px) {
    .rsd-login { flex-direction: column; }

    .rsd-login-brand {
        padding: 2.75rem 2rem 4.5rem;
        flex: 0 0 auto;
    }

    .rsd-login-brand p { display: none; }

    .rsd-login-form {
        flex: 1 1 auto;
        margin-top: -2.5rem;
        border-radius: 1.5rem 1.5rem 0 0;
        box-shadow: 0 -12px 30px -18px rgba(5, 18, 36, .3);
        padding-top: 2.5rem;
    }
}