@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Sora:wght@600;700&display=swap');

:root {
    --auth-bg-1: #06131f;
    --auth-bg-2: #0a1e2d;
    --auth-panel: #0e1824;
    --auth-panel-soft: #101e2d;
    --auth-border: rgba(67, 213, 205, 0.28);
    --auth-primary: #15cfc5;
    --auth-primary-soft: #0eb2aa;
    --auth-gold: #f4bf4f;
    --auth-text: #f4f7fb;
    --auth-muted: #a7b2bf;
}

* {
    box-sizing: border-box;
}

body.auth-body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--auth-text);
    background:
        radial-gradient(circle at 12% 18%, rgba(23, 197, 187, 0.18), transparent 35%),
        radial-gradient(circle at 84% 4%, rgba(22, 154, 220, 0.14), transparent 38%),
        linear-gradient(130deg, var(--auth-bg-1) 0%, #06131d 45%, var(--auth-bg-2) 100%);
    min-height: 100vh;
    letter-spacing: -0.01em;
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.auth-main {
    width: min(1240px, 94vw);
    margin: 0 auto;
    padding: 2.55rem 0 1.35rem;
    display: grid;
    grid-template-columns: 1.07fr 0.93fr;
    gap: 2.55rem;
    flex: 1;
}

.auth-hero {
    position: relative;
    overflow: hidden;
    padding: 0.65rem 0.35rem 1.4rem;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    margin-bottom: 2.25rem;
}

.auth-brand img {
    width: clamp(108px, 11vw, 210px);
    height: auto;
}

.auth-hero h1 {
    margin: 0;
    max-width: 650px;
    /* font-size: clamp(2.18rem, 4vw, 4.06rem); */
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.auth-hero h1 .highlight {
    color: var(--auth-gold);
}

.auth-hero p.lead {
    margin: 1.05rem 0 1.65rem;
    max-width: 530px;
    font-size: clamp(1.03rem, 1.35vw, 1.24rem);
    font-weight: 500;
    color: var(--auth-muted);
    line-height: 1.56;
}

.auth-divider {
    width: 58px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--auth-primary), rgba(21, 207, 197, 0.1));
    margin: 1rem 0 0;
}

.auth-feature-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 1.05rem;
    max-width: 472px;
}

.auth-feature {
    display: grid;
    grid-template-columns: 62px 1fr;
    gap: 1rem;
    align-items: start;
}

.auth-feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 13px;
    border: 1px solid rgba(70, 201, 193, 0.26);
    background: linear-gradient(180deg, rgba(28, 191, 183, 0.12), rgba(10, 44, 56, 0.16));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--auth-primary);
    font-size: 1.5rem;
}

.auth-feature h2 {
    margin: 0;
    font-size: 1.95rem;
    line-height: 1.07;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.auth-feature p {
    margin: 0.38rem 0 0;
    color: var(--auth-muted);
    font-size: 1.04rem;
    line-height: 1.42;
}

.auth-graph {
    margin-top: 1.5rem;
    position: relative;
    width: 100%;
    max-width: 520px;
    height: 212px;
    border-bottom: 1px solid rgba(64, 221, 214, 0.24);
    background: linear-gradient(0deg, rgba(7, 31, 44, 0.9), transparent);
}

.auth-bars {
    position: absolute;
    bottom: 0;
    right: 0;
    display: flex;
    align-items: flex-end;
    gap: 0.52rem;
}

.auth-bars span {
    width: 24px;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(180deg, #ffd56f 0%, #bb8c2e 100%);
    box-shadow: 0 0 20px rgba(244, 191, 79, 0.32);
}

.auth-bars span:nth-child(1) { height: 26px; }
.auth-bars span:nth-child(2) { height: 42px; }
.auth-bars span:nth-child(3) { height: 58px; }
.auth-bars span:nth-child(4) { height: 75px; }
.auth-bars span:nth-child(5) { height: 102px; }
.auth-bars span:nth-child(6) { height: 140px; }

.auth-line {
    position: absolute;
    inset: 16px 14px 14px 0;
}

.auth-line svg {
    width: 100%;
    height: 100%;
}

.auth-line path {
    fill: none;
    stroke: var(--auth-primary);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 8px rgba(21, 207, 197, 0.45));
}

.auth-panel {
    align-self: auto;
    justify-self: end;
    width: min(560px, 100%);
    background: linear-gradient(180deg, rgba(16, 31, 45, 0.92), rgba(11, 22, 33, 0.95));
    border: 1px solid var(--auth-border);
    border-radius: 34px;
    padding: 2.1rem 2.05rem 1.72rem;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(22, 196, 186, 0.1) inset;
}

.auth-main:has(.auth-panel-wide) {
    grid-template-columns: minmax(320px, 560px);
    justify-content: center;
}

.auth-panel-wide {
    width: min(560px, 100%);
    justify-self: center;
}

.auth-panel-header {
    text-align: center;
    margin-bottom: 1.35rem;
}

.auth-panel-header img {
    width: 100px;
    margin-bottom: 0.95rem;
}

.auth-panel-header h3 {
    margin: 0;
    font-size: clamp(2rem, 2.2vw, 2.65rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.auth-panel-header p {
    margin: 0.25rem 0 0;
    font-size: 1.16rem;
    color: var(--auth-muted);
}

.auth-alert {
    border-radius: 12px;
    padding: 0.78rem 0.92rem;
    margin-bottom: 1.05rem;
    font-size: 0.92rem;
}

.auth-alert ul {
    margin: 0;
    padding-left: 1.05rem;
}

.auth-alert.alert-danger {
    border: 1px solid rgba(255, 96, 96, 0.45);
    color: #ffd9d9;
    background: rgba(130, 20, 20, 0.2);
}

.auth-alert.alert-success {
    border: 1px solid rgba(66, 210, 138, 0.45);
    color: #d8ffea;
    background: rgba(18, 92, 53, 0.18);
}

.auth-form {
    display: grid;
    gap: 0.88rem;
}

.auth-field label {
    display: block;
    margin: 0 0 0.44rem;
    font-size: 1.05rem;
    font-weight: 500;
}

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

.auth-input,
.auth-input-wrap .form-control {
    width: 100%;
    border: 1px solid rgba(136, 155, 173, 0.35);
    border-radius: 10px;
    background: rgba(8, 17, 26, 0.72);
    color: var(--auth-text);
    min-height: 52px;
    padding: 0.78rem 0.96rem;
    font-size: 1.02rem;
    font-weight: 500;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input::placeholder,
.auth-input-wrap .form-control::placeholder {
    color: #7f92a4;
}

.auth-input:focus,
.auth-input-wrap .form-control:focus {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 0.2rem rgba(21, 207, 197, 0.17);
    outline: none;
}

.password-toggle {
    position: absolute;
    right: 0.7rem;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #8ca0b2;
    font-size: 1.08rem;
    line-height: 1;
    padding: 0.15rem;
}

.auth-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-top: 0.35rem;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 0.52rem;
    color: var(--auth-muted);
    font-size: 0.97rem;
}

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

.auth-link {
    color: var(--auth-primary);
    text-decoration: none;
    font-size: 0.97rem;
    font-weight: 500;
}

.auth-link:hover {
    color: #3ce7de;
}

.auth-submit {
    border: 0;
    border-radius: 11px;
    min-height: 54px;
    margin-top: 0.5rem;
    font-size: 1.95rem;
    font-weight: 700;
    color: #072835;
    background: linear-gradient(90deg, var(--auth-primary-soft), var(--auth-primary));
    box-shadow: 0 8px 24px rgba(15, 191, 182, 0.32);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(15, 191, 182, 0.38);
}

.auth-bottom {
    margin-top: 1.28rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(132, 153, 172, 0.25);
    text-align: center;
    color: var(--auth-muted);
    font-size: 1.18rem;
}

.auth-bottom a {
    color: #f4bf4f;
    text-decoration: none;
    margin-left: 0.36rem;
    font-weight: 500;
}

.auth-footer {
    border-top: 1px solid rgba(105, 137, 165, 0.2);
    color: #90a2b4;
    font-size: 0.95rem;
}

.auth-footer .inner {
    width: min(1240px, 94vw);
    margin: 0 auto;
    padding: 0.94rem 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
}

.auth-footer nav {
    display: flex;
    gap: 1rem;
}

.auth-footer a {
    color: #9db0c1;
    text-decoration: none;
}

.auth-footer a:hover {
    color: var(--auth-primary);
}

@media (max-width: 1100px) {
    .auth-main {
        grid-template-columns: 1fr;
        gap: 1.35rem;
        padding-top: 1.35rem;
    }

    .auth-hero {
        padding: 0;
    }

    .auth-panel {
        justify-self: stretch;
    }

    .auth-graph {
        max-width: 100%;
        display: none
    }

    .auth-hero h1 {
        font-size: clamp(2rem, 6vw, 3.2rem);
    }

    .auth-feature h2 {
        font-size: 1.52rem;
    }

    .auth-submit {
        font-size: 1.55rem;
    }
}

@media (max-width: 700px) {
    .auth-main {
        width: min(560px, 93vw);
        gap: 1rem;
        padding-top: 1rem;
    }

    .auth-brand {
        margin-bottom: 1.05rem;
    }

    .auth-brand img {
        width: 210px !important;
    }

    .auth-hero h1 {
        font-size: 2.1rem;
        line-height: 1.1;
    }

    .auth-hero p.lead {
        font-size: 1.02rem;
        margin-bottom: 0;
    }

    .auth-divider {
        margin-top: 0.85rem;
    }

    .auth-feature-list,
    .auth-graph {
        display: none;
    }

    .auth-panel {
        border-radius: 24px;
        padding: 1.45rem 1rem 1.12rem;
    }

    .auth-panel-header img {
        width: 92px;
    }

    .auth-panel-header h3 {
        font-size: 1.7rem;
    }

    .auth-panel-header p {
        font-size: 1rem;
    }

    .auth-field label {
        font-size: 1rem;
    }

    .auth-submit {
        font-size: 1.35rem;
        min-height: 49px;
    }

    .auth-bottom {
        font-size: 1rem;
    }

    .auth-footer .inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
