:root {
    --ada-primary: #556ee6;
    --ada-success: #34c38f;
    --ada-dark: #17213c;
    --ada-muted: #8a94a6;
    --ada-border: #e7ebf3;
    --ada-bg: #f6f8fc;
    --ada-gradient: linear-gradient(135deg, #556ee6 0%, #34c38f 100%);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, Nunito, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--ada-bg);
    color: var(--ada-dark);
}

.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(420px, 45%) 1fr;
    background: #ffffff;
}

.auth-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 56px clamp(40px, 7vw, 110px);
}

.auth-card {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 72px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.auth-heading h1 {
    margin: 0 0 12px;
    font-size: clamp(32px, 4vw, 44px);
    line-height: 1.05;
    letter-spacing: -0.055em;
    color: #111827;
}

.auth-heading p {
    margin: 0 0 34px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--ada-muted);
}

.login-form label {
    display: block;
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
    color: #344054;
}

.input-group-custom {
    position: relative;
    margin-bottom: 20px;
}

.input-group-custom input {
    width: 100%;
    height: 54px;
    border: 1px solid var(--ada-border);
    border-radius: 14px;
    padding: 0 16px 0 48px;
    font-size: 14px;
    outline: none;
    color: #111827;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.input-group-custom input:focus {
    border-color: rgba(85, 110, 230, .65);
    box-shadow: 0 0 0 5px rgba(85, 110, 230, .10);
    transform: translateY(-1px);
}

.input-group-custom input.is-invalid {
    border-color: #f46a6a;
}

.input-group-custom .invalid-feedback {
    display: block;
    margin-top: 8px;
    font-size: 12px;
}

.input-icon {
    position: absolute;
    left: 17px;
    top: 27px;
    transform: translateY(-50%);
    color: #98a2b3;
    font-size: 18px;
    z-index: 2;
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 6px 0 28px;
    font-size: 13px;
}

.remember {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin: 0 !important;
    color: var(--ada-muted) !important;
    font-weight: 600 !important;
}

.remember input {
    width: 15px;
    height: 15px;
    accent-color: var(--ada-primary);
}

.auth-options a {
    color: var(--ada-primary);
    font-weight: 700;
    text-decoration: none;
}

.btn-login {
    width: 100%;
    height: 56px;
    border: 0;
    border-radius: 16px;
    background: var(--ada-gradient);
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 18px 36px rgba(52, 195, 143, .22);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    filter: saturate(1.08);
    box-shadow: 0 22px 46px rgba(85, 110, 230, .25);
}


.auth-alert {
    margin: 0 0 22px;
    padding: 14px 16px;
    border: 1px solid rgba(52, 195, 143, .24);
    border-radius: 14px;
    background: rgba(52, 195, 143, .10);
    color: #087f5b;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
}

.auth-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 28px;
    text-align: center;
    font-size: 12px;
    color: #98a2b3;
}

.auth-footer a {
    color: inherit;
    font-weight: 700;
    text-decoration: none;
}

.visual-panel {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 72px;
    background:
        radial-gradient(circle at 80% 15%, rgba(255, 255, 255, .24), transparent 28%),
        radial-gradient(circle at 15% 80%, rgba(255, 255, 255, .18), transparent 32%),
        linear-gradient(135deg, #556ee6 0%, #34c38f 100%);
    color: #ffffff;
}

.visual-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(circle at center, black, transparent 70%);
    opacity: .55;
}

.visual-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 24px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(12px);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.visual-content h2 {
    color: #ffffff !important;
    max-width: 620px;
    margin: 0;
    font-size: clamp(42px, 5.6vw, 76px);
    line-height: .98;
    letter-spacing: -0.07em;
}

.visual-content p {
    max-width: 520px;
    margin: 26px 0 36px;
    font-size: 17px;
    line-height: 1.8;
    color: rgba(255, 255, 255, .84);
}

.flow-card,
.floating-card,
.mini-metrics {
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .24);
    box-shadow: 0 24px 80px rgba(20, 30, 70, .24);
    backdrop-filter: blur(18px);
}

.main-card {
    width: min(100%, 420px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px;
    border-radius: 24px;
}

.main-card small,
.floating-card span,
.mini-metrics span {
    display: block;
    color: rgba(255, 255, 255, .72) !important;
    font-size: 12px;
}

.main-card strong {
    display: block;
    margin-top: 4px;
    font-size: 17px;
}

.status-dot {
    width: 13px;
    height: 13px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 0 0 8px rgba(255, 255, 255, .14);
    animation: pulse 1.8s infinite ease-in-out;
}

.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
    padding: 16px 18px;
    border-radius: 20px;
    animation: float 6s infinite ease-in-out;
}

.floating-card i {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, .18);
    font-size: 22px;
}

.floating-card strong {
    display: block;
    font-size: 14px;
}

.card-one {
    top: 14%;
    right: 9%;
}

.card-two {
    right: 14%;
    bottom: -15%;
    animation-delay: -1.5s;
}

.card-three {
    left: 8%;
    bottom: -12%;
    animation-delay: -3s;
}

.mini-metrics {
    position: absolute;
    right: 9%;
    bottom: 8%;
    display: flex;
    gap: 18px;
    padding: 16px 20px;
    border-radius: 22px;
}

.mini-metrics strong {
    display: block;
    font-size: 20px;
}

.orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(4px);
    opacity: .42;
    animation: drift 10s infinite alternate ease-in-out;
}

.orb-one {
    width: 240px;
    height: 240px;
    top: 8%;
    right: 12%;
    background: rgba(255, 255, 255, .22);
}

.orb-two {
    width: 320px;
    height: 320px;
    bottom: -80px;
    left: -80px;
    background: rgba(255, 255, 255, .16);
    animation-delay: -2s;
}

.orb-three {
    width: 120px;
    height: 120px;
    top: 56%;
    right: 38%;
    background: rgba(255, 255, 255, .18);
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

@keyframes drift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(22px, -18px, 0) scale(1.08); }
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 8px rgba(255, 255, 255, .14); }
    50% { box-shadow: 0 0 0 14px rgba(255, 255, 255, .04); }
}

@media (max-width: 991px) {
    .auth-page {
        display: block;
        min-height: 100vh;
        background:
            radial-gradient(circle at 80% 0%, rgba(52, 195, 143, .20), transparent 35%),
            radial-gradient(circle at 0% 20%, rgba(85, 110, 230, .20), transparent 35%),
            #f6f8fc;
    }

    .visual-panel {
        min-height: 250px;
        padding: 32px 24px;
        align-items: flex-start;
        border-radius: 0 0 34px 34px;
    }

    .visual-content h2 {
        font-size: 34px;
        max-width: 340px;
    }

    .visual-content p {
        max-width: 340px;
        margin: 16px 0 0;
        font-size: 14px;
        line-height: 1.6;
    }

    .eyebrow,
    .main-card,
    .floating-card,
    .mini-metrics {
        display: none;
    }

    .auth-panel {
        margin-top: 0;
        padding: 24px 20px 32px;
        justify-content: flex-start;
    }

    .auth-card {
        max-width: 100%;
        padding: 28px 22px;
        border-radius: 28px;
        background: #ffffff;
        box-shadow: 0 24px 70px rgba(31, 41, 55, .12);
    }

    .brand {
        justify-content: center;
        margin-bottom: 34px;
    }

    .auth-heading {
        text-align: center;
    }

    .auth-heading h1 {
        font-size: 28px;
    }

    .auth-heading p {
        margin-bottom: 28px;
        font-size: 14px;
    }

    .auth-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .auth-footer {
        position: static;
        margin-top: 24px;
    }
}

.auth-switch {
    margin: 22px 0 0;
    color: var(--ada-muted);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.6;
    text-align: center;
}

.auth-switch a {
    color: var(--ada-primary);
    font-weight: 800;
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.register-page .card-one {
    top: 35%;
}

.register-page .mini-metrics {
  bottom: 12%;
}