:root {
    --red: #d82f3e;
    --red-dark: #9f1724;
    --ink: #16181d;
    --muted: #707581;
    --line: #e9e9ed;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    min-height: 100%;
}

body {
    font-family: "Manrope", "Segoe UI", sans-serif;
    color: var(--ink);
    background: #f5f3f1;
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

.auth-shell {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-columns: minmax(440px, 1.08fr) minmax(480px, .92fr);
    overflow: hidden;
}

.brand-panel {
    position: relative;
    min-height: 100vh;
    padding: clamp(32px, 5vw, 72px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    isolation: isolate;
    color: #fff;
    background: linear-gradient(145deg, #15161a 0%, #21161a 48%, #52131b 100%);
}

.brand-panel::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: min(43vw, 630px);
    aspect-ratio: 1;
    right: -15%;
    bottom: -23%;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 0 0 70px rgba(255, 255, 255, .025), 0 0 0 140px rgba(255, 255, 255, .018);
}

.brand-panel__grid {
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: .13;
    background-image: linear-gradient(rgba(255, 255, 255, .13) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .13) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to bottom right, #000, transparent 72%);
}

.brand-panel__glow {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(2px);
    animation: drift 9s ease-in-out infinite alternate;
}

.brand-panel__glow--one {
    width: 380px;
    height: 380px;
    top: -190px;
    right: -90px;
    background: rgba(216, 47, 62, .33);
}

.brand-panel__glow--two {
    width: 230px;
    height: 230px;
    left: -120px;
    bottom: 20%;
    background: rgba(216, 47, 62, .17);
    animation-delay: -4s;
}

.brand-mark {
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 14px;
    color: inherit;
    text-decoration: none;
    animation: reveal .7s ease both;
}

.brand-mark__logo {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(0, 0, 0, .24);
}

.brand-mark img {
    width: 49px;
    height: 44px;
    object-fit: contain;
}

.brand-mark strong,
.mobile-brand strong {
    display: block;
    font-size: 16px;
    letter-spacing: -.02em;
}

.brand-mark small,
.mobile-brand small {
    display: block;
    margin-top: 2px;
    color: rgba(255, 255, 255, .58);
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.brand-copy {
    max-width: 690px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, .7);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    animation: reveal .65s .12s ease both;
}

.eyebrow i {
    width: 26px;
    height: 1px;
    background: var(--red);
    box-shadow: 0 0 10px var(--red);
}

.brand-copy h1 {
    max-width: 650px;
    font-size: clamp(50px, 5.3vw, 82px);
    line-height: .98;
    letter-spacing: -.065em;
    font-weight: 800;
    animation: reveal .7s .2s ease both;
}

.brand-copy h1 span {
    color: #f25865;
}

.brand-copy>p {
    max-width: 610px;
    margin-top: 28px;
    color: rgba(255, 255, 255, .64);
    font-size: clamp(14px, 1.25vw, 17px);
    line-height: 1.8;
    animation: reveal .7s .3s ease both;
}

.feature-row {
    display: flex;
    gap: 14px;
    margin-top: 42px;
    animation: reveal .7s .4s ease both;
}

.feature-card {
    flex: 0 1 240px;
    display: flex;
    gap: 13px;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 16px;
    background: rgba(255, 255, 255, .055);
    backdrop-filter: blur(8px);
    transition: transform .25s ease, background .25s ease, border-color .25s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, .09);
    border-color: rgba(255, 255, 255, .2);
}

.feature-card svg {
    width: 23px;
    flex: 0 0 auto;
    fill: none;
    stroke: #ef5361;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-card strong {
    display: block;
    font-size: 12px;
}

.feature-card small {
    color: rgba(255, 255, 255, .48);
    font-size: 10px;
}

.brand-panel__footer {
    color: rgba(255, 255, 255, .36);
    font-size: 11px;
    letter-spacing: .04em;
    animation: reveal .7s .5s ease both;
}

.login-panel {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 100% 0, #fff 0, transparent 34%), #f8f7f5;
}

.login-card {
    width: 100%;
    max-width: 460px;
    animation: card-in .75s .12s cubic-bezier(.2, .8, .2, 1) both;
}

.login-card__heading {
    margin-bottom: 34px;
}

.welcome-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 24px;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(135deg, #e64250, #a91927);
    box-shadow: 0 12px 25px rgba(216, 47, 62, .25);
}

.login-card__heading p {
    margin-bottom: 8px;
    color: var(--red);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.login-card__heading h2 {
    margin-bottom: 10px;
    font-size: clamp(26px, 2.4vw, 36px);
    line-height: 1.18;
    letter-spacing: -.045em;
}

.login-card__heading>span:last-child {
    color: var(--muted);
    font-size: 13px;
}

.form-field {
    margin-bottom: 19px;
}

.form-field>label {
    display: block;
    margin-bottom: 8px;
    color: #30333a;
    font-size: 12px;
    font-weight: 700;
}

.input-shell {
    position: relative;
}

.input-shell>svg {
    position: absolute;
    z-index: 2;
    left: 17px;
    top: 50%;
    width: 19px;
    transform: translateY(-50%);
    fill: none;
    stroke: #9498a1;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
    transition: stroke .2s ease;
}

.input-shell:focus-within>svg {
    stroke: var(--red);
}

.input-shell input {
    width: 100%;
    height: 55px;
    padding: 0 48px;
    border: 1px solid var(--line);
    border-radius: 13px;
    outline: 0;
    color: var(--ink);
    background: rgba(255, 255, 255, .86);
    font-size: 13px;
    box-shadow: 0 5px 15px rgba(32, 22, 24, .025);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.input-shell input::placeholder {
    color: #aaaeb6;
}

.input-shell input:focus {
    border-color: rgba(216, 47, 62, .58);
    box-shadow: 0 0 0 4px rgba(216, 47, 62, .09), 0 10px 24px rgba(45, 23, 26, .06);
    transform: translateY(-1px);
}

.login-button {
    position: relative;
    width: 100%;
    height: 55px;
    margin-top: 10px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    overflow: hidden;
    border: 0;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(110deg, #b91f2d, #e23847);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(190, 28, 43, .22);
    transition: transform .2s ease, box-shadow .2s ease;
}

.login-button::before {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-110%) skewX(-18deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .22), transparent);
    transition: transform .65s ease;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(190, 28, 43, .3);
}

.login-button:hover::before {
    transform: translateX(110%) skewX(-18deg);
}

.login-button:active {
    transform: translateY(0);
}

.login-button:focus-visible {
    outline: 3px solid rgba(216, 47, 62, .25);
    outline-offset: 3px;
}

.login-button svg {
    width: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .2s ease;
}

.login-button:hover svg {
    transform: translateX(4px);
}

.secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 25px;
    color: #92969d;
    font-size: 10px;
}

.secure-note svg {
    width: 15px;
    fill: none;
    stroke: #62a079;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.error-message {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: -10px 0 22px;
    padding: 12px 14px;
    border: 1px solid #f2bec3;
    border-radius: 11px;
    color: #9d1c29;
    background: #fff1f2;
    font-size: 12px;
    font-weight: 600;
    animation: shake .38s ease both;
}

.error-message svg {
    width: 18px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.page-footer {
    position: absolute;
    bottom: 25px;
    left: 28px;
    right: 28px;
    display: flex;
    justify-content: space-between;
    color: #a3a3a7;
    font-size: 9px;
    letter-spacing: .03em;
}

.mobile-brand {
    display: none;
}

.input-shell .password-toggle-field {
    display: block!important;
    width: 100%!important;
}

.input-shell .password-toggle-field>input {
    padding-right: 52px!important;
}

.input-shell .password-toggle-field>.password-toggle-button {
    right: 9px!important;
    top: 50%!important;
    width: 38px!important;
    height: 38px!important;
    color: #858a94!important;
    border-radius: 10px!important;
    transition: color .2s ease, background .2s ease!important;
}

.input-shell .password-toggle-field>.password-toggle-button:hover {
    color: var(--red)!important;
    background: #fff1f2!important;
}

@keyframes reveal {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes card-in {
    from {
        opacity: 0;
        transform: translateX(24px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes drift {
    to {
        transform: translate3d(24px, 18px, 0) scale(1.08);
    }
}

@keyframes shake {
    0%,
    100% {
        transform: translateX(0);
    }
    35% {
        transform: translateX(-5px);
    }
    70% {
        transform: translateX(4px);
    }
}

@media (max-width:980px) {
    .auth-shell {
        grid-template-columns: minmax(350px, .85fr) minmax(430px, 1.15fr);
    }
    .brand-panel {
        padding: 38px;
    }
    .brand-copy h1 {
        font-size: clamp(45px, 6.5vw, 66px);
    }
    .feature-row {
        flex-direction: column;
    }
    .feature-card {
        flex: none;
    }
}

@media (max-width:760px) {
    .auth-shell {
        display: block;
        min-height: 100dvh;
    }
    .brand-panel {
        display: none;
    }
    .login-panel {
        min-height: 100dvh;
        padding: 88px 24px 68px;
        justify-content: center;
        background: radial-gradient(circle at 90% 5%, rgba(216, 47, 62, .12), transparent 30%), #f8f7f5;
    }
    .mobile-brand {
        position: absolute;
        top: 24px;
        left: 24px;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .mobile-brand img {
        width: 38px;
        height: 38px;
        padding: 2px;
        object-fit: contain;
        border-radius: 10px;
        background: #fff;
        box-shadow: 0 5px 16px rgba(0, 0, 0, .09);
    }
    .mobile-brand strong {
        font-size: 13px;
    }
    .mobile-brand small {
        color: #92959c;
        font-size: 8px;
    }
    .welcome-icon {
        margin-bottom: 18px;
    }
    .login-card__heading {
        margin-bottom: 28px;
    }
    .page-footer {
        bottom: 18px;
        justify-content: center;
    }
    .page-footer span:last-child {
        display: none;
    }
}

@media (max-height:700px) and (min-width:761px) {
    .brand-copy {
        padding: 30px 0;
    }
    .brand-copy h1 {
        font-size: 48px;
    }
    .feature-row {
        margin-top: 25px;
    }
    .login-panel {
        padding-top: 28px;
        padding-bottom: 28px;
    }
    .login-card__heading {
        margin-bottom: 22px;
    }
    .welcome-icon {
        margin-bottom: 15px;
    }
    .secure-note {
        margin-top: 15px;
    }
}

@media (prefers-reduced-motion:reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto!important;
        animation-duration: .01ms!important;
        animation-iteration-count: 1!important;
        transition-duration: .01ms!important;
    }
}