:root {
    --auth-bg: #0b1020;
    --auth-bg-deep: #070b16;
    --auth-surface: #f8fafc;
    --auth-border: rgba(148, 163, 184, 0.22);
    --auth-text: #0f172a;
    --auth-text-soft: #64748b;
    --auth-text-inverse: #f8fafc;

    --auth-primary: #2563eb;
    --auth-secondary: #06b6d4;
    --auth-tertiary: #22c55e;
    --auth-accent: #f59e0b;

    --auth-danger-bg: #fef2f2;
    --auth-danger-text: #991b1b;
    --auth-danger-border: #fecaca;
    --auth-success-bg: #ecfdf5;
    --auth-success-text: #065f46;
    --auth-success-border: #a7f3d0;
    --auth-info-bg: #eff6ff;
    --auth-info-text: #1d4ed8;
    --auth-info-border: #bfdbfe;

    --auth-shadow-xl: 0 30px 80px rgba(2, 6, 23, 0.24);
    --auth-shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.16);
    --auth-font: "Poppins", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body.auth-body {
    margin: 0;
    font-family: var(--auth-font);
    color: var(--auth-text);
    background:
        radial-gradient(circle at 12% 18%, rgba(34, 197, 94, 0.22), transparent 18%),
        radial-gradient(circle at 28% 72%, rgba(6, 182, 212, 0.26), transparent 18%),
        radial-gradient(circle at 82% 12%, rgba(37, 99, 235, 0.34), transparent 20%),
        radial-gradient(circle at 90% 82%, rgba(245, 158, 11, 0.18), transparent 16%),
        linear-gradient(135deg, #07111f 0%, #0a1b33 26%, #123c8d 62%, #0ea5e9 100%);
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

.auth-shell {
    width: 100%;
    max-width: 1380px;
}

.login-layout {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.85fr);
    min-height: 860px;
    border-radius: 40px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--auth-shadow-xl);
    backdrop-filter: blur(12px);
}

.login-showcase {
    position: relative;
    overflow: hidden;
    padding: 56px 56px 48px;
    background:
        radial-gradient(circle at 18% 24%, rgba(34, 197, 94, 0.18), transparent 16%),
        radial-gradient(circle at 34% 74%, rgba(6, 182, 212, 0.22), transparent 18%),
        radial-gradient(circle at 82% 16%, rgba(96, 165, 250, 0.36), transparent 18%),
        linear-gradient(180deg, rgba(5, 16, 33, 0.78), rgba(11, 33, 71, 0.9));
    color: var(--auth-text-inverse);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.login-showcase::before,
.login-showcase::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(14px);
    pointer-events: none;
}

.login-showcase::before {
    width: 260px;
    height: 260px;
    top: -60px;
    right: -30px;
    background: rgba(37, 99, 235, 0.26);
}

.login-showcase::after {
    width: 220px;
    height: 220px;
    bottom: -90px;
    left: -60px;
    background: rgba(34, 197, 94, 0.18);
}

.brand-block {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 42px;
}

.brand-mark {
    position: relative;
    width: 68px;
    height: 68px;
    border-radius: 22px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06)),
        linear-gradient(145deg, #14b8a6 0%, #06b6d4 45%, #2563eb 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.24),
        0 18px 34px rgba(14, 165, 233, 0.32);
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-mark__grid {
    position: relative;
    width: 38px;
    height: 38px;
}

.brand-mark__tile,
.brand-mark__dot {
    position: absolute;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.94);
}

.brand-mark__tile--a {
    width: 16px;
    height: 16px;
    left: 0;
    top: 0;
}

.brand-mark__tile--b {
    width: 16px;
    height: 16px;
    right: 0;
    top: 0;
    opacity: 0.88;
}

.brand-mark__tile--c {
    width: 16px;
    height: 16px;
    left: 0;
    bottom: 0;
    opacity: 0.88;
}

.brand-mark__dot {
    width: 14px;
    height: 14px;
    right: 1px;
    bottom: 1px;
    border-radius: 50%;
    background: #fde68a;
    box-shadow: 0 0 0 5px rgba(253, 230, 138, 0.18);
}

.brand-copy h1 {
    margin: 0 0 6px;
    font-size: 44px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.brand-copy p {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    color: rgba(226, 232, 240, 0.84);
}

.showcase-copy {
    position: relative;
    z-index: 1;
    max-width: 680px;
}

.showcase-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    margin-bottom: 28px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #dbeafe;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.showcase-title {
    margin: 0 0 18px;
    font-size: clamp(48px, 5vw, 76px);
    line-height: 0.98;
    font-weight: 700;
    letter-spacing: -0.06em;
    max-width: 760px;
}

.showcase-title .accent-primary {
    color: #93c5fd;
}

.showcase-title .accent-secondary {
    color: #67e8f9;
}

.showcase-description {
    margin: 0;
    max-width: 580px;
    font-size: 21px;
    line-height: 1.7;
    font-weight: 400;
    color: rgba(226, 232, 240, 0.82);
}

.showcase-footer {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 48px;
}

.showcase-metric {
    border-radius: 24px;
    padding: 22px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.showcase-metric__label {
    display: block;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(226, 232, 240, 0.72);
}

.showcase-metric__value {
    display: block;
    margin-bottom: 8px;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.04em;
    color: #ffffff;
}

.showcase-metric__text {
    display: block;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 400;
    color: rgba(226, 232, 240, 0.74);
}

.showcase-bars {
    position: absolute;
    left: 56px;
    bottom: 48px;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 110px;
    pointer-events: none;
}

.showcase-bars span {
    width: 14px;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(96, 165, 250, 0.28);
}

.showcase-bars span:nth-child(1) {
    height: 94px;
    background: linear-gradient(180deg, #67e8f9 0%, #06b6d4 100%);
}

.showcase-bars span:nth-child(2) {
    height: 62px;
    background: linear-gradient(180deg, #86efac 0%, #22c55e 100%);
}

.showcase-bars span:nth-child(3) {
    height: 78px;
    background: linear-gradient(180deg, #93c5fd 0%, #2563eb 100%);
}

.login-panel-wrap {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(241, 245, 249, 0.98));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 44px;
}

.login-panel {
    width: 100%;
    max-width: 520px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(203, 213, 225, 0.7);
    border-radius: 30px;
    padding: 40px 36px 36px;
    box-shadow: var(--auth-shadow-lg);
}

.login-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 16px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    color: var(--auth-primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.login-header {
    margin-bottom: 24px;
}

.login-header h1 {
    margin: 0 0 10px;
    font-size: 50px;
    line-height: 1;
    letter-spacing: -0.05em;
    font-weight: 700;
    color: #0f172a;
}

.login-header p {
    margin: 0;
    color: #64748b;
    font-size: 19px;
    line-height: 1.7;
    font-weight: 400;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
}

.form-group input {
    width: 100%;
    height: 58px;
    border: 1px solid #dbe2ea;
    border-radius: 18px;
    padding: 0 18px;
    font-size: 16px;
    font-weight: 400;
    color: #0f172a;
    outline: none;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.form-group input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.form-group input:hover {
    border-color: #cbd5e1;
}

.form-group input:focus {
    border-color: rgba(37, 99, 235, 0.9);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
    background: #ffffff;
}

.btn-primary {
    height: 58px;
    margin-top: 8px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(90deg, #2563eb 0%, #06b6d4 54%, #22c55e 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.02em;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(14, 165, 233, 0.24);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(14, 165, 233, 0.3);
    filter: saturate(1.04);
}

.btn-primary:active {
    transform: translateY(0);
}

.alert {
    margin-bottom: 18px;
    border-radius: 16px;
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 500;
    border: 1px solid transparent;
}

.alert-error {
    background: var(--auth-danger-bg);
    color: var(--auth-danger-text);
    border-color: var(--auth-danger-border);
}

.alert-success {
    background: var(--auth-success-bg);
    color: var(--auth-success-text);
    border-color: var(--auth-success-border);
}

.alert-info {
    background: var(--auth-info-bg);
    color: var(--auth-info-text);
    border-color: var(--auth-info-border);
}

.login-disclaimer {
    margin-top: 18px;
    font-size: 13px;
    line-height: 1.7;
    font-weight: 400;
    color: #64748b;
}

@media (max-width: 1180px) {
    .login-layout {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .login-showcase {
        padding: 42px 34px 140px;
    }

    .showcase-title {
        max-width: 100%;
        font-size: clamp(40px, 6vw, 60px);
    }

    .showcase-description {
        font-size: 19px;
    }

    .showcase-footer {
        grid-template-columns: 1fr;
    }

    .showcase-bars {
        left: 34px;
        bottom: 34px;
    }

    .login-panel-wrap {
        padding: 28px;
    }
}

@media (max-width: 720px) {
    .auth-page {
        padding: 14px;
    }

    .login-layout {
        border-radius: 28px;
    }

    .login-showcase {
        padding: 28px 22px 118px;
    }

    .brand-block {
        gap: 14px;
        margin-bottom: 28px;
    }

    .brand-mark {
        width: 56px;
        height: 56px;
        border-radius: 18px;
    }

    .brand-mark__grid {
        width: 32px;
        height: 32px;
    }

    .brand-mark__tile--a,
    .brand-mark__tile--b,
    .brand-mark__tile--c {
        width: 13px;
        height: 13px;
        border-radius: 8px;
    }

    .brand-mark__dot {
        width: 12px;
        height: 12px;
    }

    .brand-copy h1 {
        font-size: 34px;
    }

    .brand-copy p {
        font-size: 13px;
    }

    .showcase-tag {
        margin-bottom: 18px;
        font-size: 11px;
    }

    .showcase-title {
        margin-bottom: 16px;
        font-size: 42px;
        line-height: 1.02;
    }

    .showcase-description {
        font-size: 16px;
    }

    .showcase-footer {
        gap: 12px;
        margin-top: 28px;
    }

    .showcase-metric {
        border-radius: 18px;
        padding: 16px;
    }

    .showcase-metric__value {
        font-size: 24px;
    }

    .showcase-bars {
        left: 22px;
        bottom: 22px;
        height: 84px;
    }

    .showcase-bars span {
        width: 11px;
    }

    .showcase-bars span:nth-child(1) {
        height: 72px;
    }

    .showcase-bars span:nth-child(2) {
        height: 46px;
    }

    .showcase-bars span:nth-child(3) {
        height: 60px;
    }

    .login-panel-wrap {
        padding: 16px;
    }

    .login-panel {
        padding: 28px 20px 22px;
        border-radius: 24px;
    }

    .login-header h1 {
        font-size: 40px;
    }

    .login-header p {
        font-size: 16px;
    }

    .form-group input,
    .btn-primary {
        height: 54px;
    }
}