:root {
    --auth-primary: #635bff;
    --auth-secondary: #00bfa6;
    --auth-ink: #172033;
    --auth-muted: #718096;
}

body {
    background: #f4f7fb;
}

.login-page {
    position: relative;
    display: grid;
    min-height: 100vh;
    padding: 32px 16px;
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 10%, rgba(0, 191, 166, .16), transparent 28%),
        radial-gradient(circle at 92% 90%, rgba(99, 91, 255, .14), transparent 30%),
        #f4f7fb;
    place-items: center;
}

.login-page::before,
.login-page::after {
    position: absolute;
    width: 260px;
    height: 260px;
    content: "";
    border: 1px solid rgba(99, 91, 255, .12);
    border-radius: 50%;
}

.login-page::before {
    top: -110px;
    right: -70px;
}

.login-page::after {
    bottom: -130px;
    left: -90px;
}

.login-shell {
    position: relative;
    z-index: 1;
    display: grid;
    width: min(1040px, 100%);
    min-height: 620px;
    overflow: hidden;
    grid-template-columns: 1.05fr .95fr;
    background: #fff;
    border: 1px solid rgba(23, 32, 51, .06);
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(33, 45, 82, .14);
}

.login-showcase {
    position: relative;
    display: flex;
    padding: 52px;
    overflow: hidden;
    color: #fff;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(145deg, #171b3d 0%, #34308f 52%, #00a892 140%);
}

.login-showcase::after {
    position: absolute;
    right: -90px;
    bottom: -120px;
    width: 390px;
    height: 390px;
    content: "";
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
}

.brand-mark {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    font-size: 19px;
    font-weight: 700;
}

.brand-icon {
    display: grid;
    width: 42px;
    height: 42px;
    color: #fff;
    background: linear-gradient(135deg, #00d9bd, #7069ff);
    border-radius: 13px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .18);
    place-items: center;
}

.showcase-copy {
    position: relative;
    z-index: 1;
    max-width: 410px;
}

.showcase-copy h1 {
    margin-bottom: 18px;
    color: #fff;
    font-size: clamp(34px, 4vw, 50px);
    font-weight: 750;
    line-height: 1.08;
    letter-spacing: -1.5px;
}

.showcase-copy p {
    margin: 0;
    color: rgba(255, 255, 255, .72);
    font-size: 16px;
    line-height: 1.75;
}

.trust-row {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 26px;
    color: rgba(255, 255, 255, .78);
    font-size: 13px;
}

.trust-row span {
    display: flex;
    gap: 8px;
    align-items: center;
}

.trust-row i {
    color: #42e8cf;
    font-size: 18px;
}

.login-panel {
    display: flex;
    padding: 54px 64px;
    align-items: center;
}

.login-form-wrap {
    width: 100%;
}

.company-logo {
    display: flex;
    min-height: 54px;
    margin-bottom: 30px;
    align-items: center;
}

.company-logo img {
    max-width: 320px;
    max-height: 86px;
    object-fit: contain;
    background: transparent;
    border-radius: 0;
}

.login-heading {
    margin-bottom: 8px;
    color: var(--auth-ink);
    font-size: 30px;
    font-weight: 750;
    letter-spacing: -.6px;
}

.login-subtitle {
    margin-bottom: 30px;
    color: var(--auth-muted);
    font-size: 14px;
    line-height: 1.65;
}

.login-label {
    margin-bottom: 9px;
    color: #39445a;
    font-size: 13px;
    font-weight: 650;
}

.login-input-wrap {
    position: relative;
}

.login-input-wrap > i {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 17px;
    color: #98a2b3;
    font-size: 19px;
    transform: translateY(-50%);
}

.login-input {
    height: 52px;
    padding: 0 48px;
    color: var(--auth-ink);
    background: #f8fafc;
    border: 1px solid #e7ebf1;
    border-radius: 13px;
    transition: .2s ease;
}

.login-input:focus {
    background: #fff;
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 4px rgba(99, 91, 255, .1);
}

.login-button {
    display: inline-flex;
    height: 52px;
    color: #fff;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    background: linear-gradient(110deg, var(--auth-primary), #7770ff);
    border: 0;
    border-radius: 13px;
    box-shadow: 0 14px 28px rgba(99, 91, 255, .22);
    transition: .2s ease;
}

.login-button:hover {
    color: #fff;
    box-shadow: 0 17px 32px rgba(99, 91, 255, .3);
    transform: translateY(-1px);
}

.auth-secondary-button {
    display: inline-flex;
    width: 100%;
    height: 48px;
    color: var(--auth-primary);
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    background: #f0efff;
    border: 1px solid #dedbff;
    border-radius: 13px;
    transition: .2s ease;
}

.auth-secondary-button:hover {
    color: #4d45d4;
    background: #e9e7ff;
}

.security-note,
.auth-back-link {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 24px;
    color: #98a2b3;
    font-size: 12px;
}

.login-footer {
    margin-top: 1.25rem;
    text-align: center;
    font-size: 0.78rem;
    color: #718096;
}

.login-build-serial {
    margin-top: 0.35rem;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    color: #94a3b8;
}

.auth-back-link {
    color: var(--auth-primary);
    font-weight: 700;
}

.auth-back-link:hover {
    color: #4d45d4;
}

.auth-step-note {
    display: flex;
    padding: 12px 14px;
    margin-bottom: 20px;
    color: #667085;
    align-items: flex-start;
    gap: 10px;
    background: #f7f8fc;
    border: 1px solid #eceef4;
    border-radius: 12px;
    font-size: 11px;
    line-height: 1.55;
}

.auth-step-note i {
    margin-top: 2px;
    color: var(--auth-secondary);
}

.register-shell {
    width: min(1120px, 100%);
    min-height: 690px;
}

.register-shell .login-panel {
    padding-top: 38px;
    padding-bottom: 38px;
}

.register-shell .company-logo {
    margin-bottom: 20px;
}

.register-shell .login-subtitle {
    margin-bottom: 22px;
}

.auth-register-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 14px;
}

.auth-grid-full {
    grid-column: 1 / -1;
}

@media (max-width: 860px) {
    .login-shell {
        max-width: 540px;
        grid-template-columns: 1fr;
    }

    .login-showcase {
        min-height: 245px;
        padding: 34px;
    }

    .showcase-copy h1 {
        margin: 24px 0 10px;
        font-size: 30px;
    }

    .showcase-copy p,
    .trust-row {
        display: none;
    }

    .register-shell {
        max-width: 620px;
    }
}

@media (max-width: 520px) {
    .login-page {
        padding: 0;
        background: #fff;
    }

    .login-shell {
        min-height: 100vh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .login-showcase {
        min-height: 180px;
        padding: 26px 24px;
    }

    .showcase-copy h1 {
        font-size: 24px;
    }

    .login-panel {
        padding: 36px 24px 44px;
    }

    .auth-register-grid {
        grid-template-columns: 1fr;
    }

    .auth-grid-full {
        grid-column: auto;
    }
}
