:root {
    --brand: #A27B68;
    --brand-dark: #805e4f;
    --ink: #111827;
    --paper: #f5efe9;
    --danger: #be123c;
}

body {
    background: radial-gradient(circle at 15% 20%, #f3dfd2 0%, #f7f2ef 38%, #f0ebe7 100%);
}

.main-container {
    position: relative;
    overflow: hidden;
}

.left-side {
    width: 58%;
    height: 100%;
    position: relative;
    padding: 2.4rem 3rem;
    color: #fff;
    background: linear-gradient(140deg, #1a1f2f 0%, #29364f 45%, #2f3f63 100%);
    isolation: isolate;
}

.left-side::before,
.left-side::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(2px);
    opacity: 0.45;
    z-index: 0;
}

.left-side::before {
    width: 480px;
    height: 480px;
    right: -180px;
    bottom: -200px;
    background: radial-gradient(circle, #7eb4d1 0%, rgba(126, 180, 209, 0) 70%);
}

.left-side::after {
    width: 320px;
    height: 320px;
    left: -110px;
    top: -80px;
    background: radial-gradient(circle, #f1b57e 0%, rgba(241, 181, 126, 0) 75%);
}

.left-side__overlay {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.2;
    z-index: 1;
}

.left-side .top,
.left-side .hero-copy {
    position: relative;
    z-index: 2;
}

.left-side .top {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    animation: fade-in-up 700ms ease-out;
}

.left-side .top img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.left-side .top h1 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.25;
    max-width: 420px;
}

.hero-copy {
    margin-top: 10vh;
    max-width: 560px;
    animation: fade-in-up 700ms 140ms ease-out backwards;
}

.hero-copy__kicker {
    margin: 0;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #f8d8b8;
    font-size: 0.78rem;
    font-weight: 700;
}

.hero-copy h2 {
    margin: 1rem 0;
    font-size: clamp(1.6rem, 2.8vw, 3rem);
    line-height: 1.12;
}

.hero-copy p {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.6;
    max-width: 48ch;
    color: #eef4ff;
}

.hero-copy__chips {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.hero-copy__chips span {
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background-color: rgba(255, 255, 255, 0.12);
    font-size: 0.83rem;
}

.right-side {
    width: 42%;
    height: 100%;
    position: relative;
    display: grid;
    place-items: center;
    padding: 2rem;
    overflow: hidden;
}

.right-side .rins {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(162, 123, 104, 0.35);
    pointer-events: none;
}

.right-side .rin1 {
    width: 280px;
    height: 280px;
    top: -80px;
    right: -60px;
    animation: pulse 8s ease-in-out infinite;
}

.right-side .rin2 {
    width: 120px;
    height: 120px;
    top: 22%;
    left: -50px;
    animation: pulse 6s 300ms ease-in-out infinite;
}

.right-side .rin3 {
    width: 180px;
    height: 180px;
    bottom: -70px;
    left: 35%;
    animation: pulse 7s 900ms ease-in-out infinite;
}

.login-card {
    width: min(430px, 100%);
    padding: 2.1rem 2rem 1.8rem;
    border-radius: 22px;
    background: linear-gradient(170deg, #ffffff 0%, #fff8f1 100%);
    box-shadow: 0 26px 60px rgba(83, 55, 39, 0.28);
    border: 1px solid rgba(162, 123, 104, 0.2);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    position: relative;
    z-index: 2;
    animation: fade-in-up 620ms ease-out;
}

.login-logo {
    width: 74px;
    height: 74px;
    object-fit: contain;
    margin: 0 auto 0.25rem;
}

.login-card h3 {
    margin: 0;
    font-size: 1.52rem;
    text-align: center;
    color: var(--ink);
}

.login-subtitle {
    margin: 0 0 0.55rem;
    text-align: center;
    color: #5d6779;
}

.validation-error {
    list-style: none;
    margin: 0;
    padding: 0.35rem 0.6rem;
    border-radius: 8px;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #9f1239;
    font-size: 0.88rem;
}

.login-card .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 0.2rem;
}

.login-card .form-group label {
    font-size: 0.92rem;
    color: #3f4755;
    font-weight: 600;
}

.login-card .form-group input {
    width: 100%;
    height: 44px;
    border-radius: 10px;
    border: 1px solid #d3d9e4;
    padding: 0 0.9rem;
    color: var(--ink);
    background-color: #fff;
    font-size: 0.95rem;
    transition: box-shadow 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.login-card .form-group input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(162, 123, 104, 0.18);
    transform: translateY(-1px);
}

.login-card input[type="submit"] {
    margin-top: 0.95rem;
    height: 46px;
    border-radius: 10px;
    border: none;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: linear-gradient(130deg, var(--brand) 0%, var(--brand-dark) 100%);
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.login-card input[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(128, 94, 79, 0.34);
    filter: brightness(1.02);
}

.login-card input[type="submit"]:active {
    transform: translateY(0);
}

.help-link {
    margin-top: 0.4rem;
    text-align: center;
    color: #5b6172;
    text-decoration: none;
    font-size: 0.9rem;
}

.help-link:hover {
    color: var(--brand-dark);
}

.floating-alert {
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: min(360px, calc(100% - 2rem));
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.8rem;
    padding: 0.85rem 0.95rem;
    background: #fff4f6;
    border: 1px solid #fda4af;
    border-left: 5px solid var(--danger);
    color: #881337;
    border-radius: 14px;
    box-shadow: 0 14px 30px rgba(136, 19, 55, 0.2);
    z-index: 40;
    animation: alert-in 420ms ease-out;
}

.floating-alert__icon {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-weight: 800;
    background-color: var(--danger);
    color: #fff;
}

.floating-alert__content h4 {
    margin: 0;
    font-size: 0.95rem;
}

.floating-alert__content p {
    margin: 0.1rem 0 0;
    font-size: 0.88rem;
}

.floating-alert__close {
    border: none;
    background: transparent;
    color: #9f1239;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0.1rem;
}

.floating-alert.is-hidden {
    animation: alert-out 260ms ease-in forwards;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.08);
        opacity: 0.65;
    }
}

@keyframes alert-in {
    from {
        transform: translate(30px, -20px);
        opacity: 0;
    }

    to {
        transform: translate(0, 0);
        opacity: 1;
    }
}

@keyframes alert-out {
    to {
        transform: translate(20px, -10px);
        opacity: 0;
        visibility: hidden;
    }
}

@media screen and (max-width: 1050px) {
    .left-side {
        display: none;
    }

    .right-side {
        width: 100%;
        padding: 1.2rem;
    }
}

@media screen and (max-width: 480px) {
    .login-card {
        padding: 1.6rem 1.2rem 1.3rem;
        border-radius: 16px;
    }

    .login-card h3 {
        font-size: 1.3rem;
    }

    .floating-alert {
        top: 0.75rem;
        right: 0.75rem;
        left: 0.75rem;
        width: auto;
    }
}
