:root {
    --alto-bg: #0a0e0d;
    --alto-panel: rgba(15, 23, 20, .92);
    --alto-line: rgba(255, 255, 255, .09);
    --alto-text: #f3f6f4;
    --alto-muted: #9fb0aa;
    --alto-green: #2ecc8f;
    --alto-green-dark: #11a876;
    --alto-danger: #ff7a7a;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body.identity-page {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: var(--alto-bg);
    color: var(--alto-text);
    font-family: "Manrope", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.identity-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

    .identity-bg::after {
        content: "";
        position: absolute;
        inset: 0;
        opacity: .025;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    }

    .identity-bg svg {
        width: 100%;
        height: 100%;
        opacity: .55;
    }

    .identity-bg path {
        fill: none;
        stroke: rgba(46, 204, 143, .14);
        stroke-width: 1;
    }

.identity-orb {
    position: absolute;
    width: 620px;
    height: 620px;
    border-radius: 50%;
    background: rgba(46, 204, 143, .08);
    filter: blur(110px);
}

.identity-orb--top {
    right: -240px;
    top: -330px;
}

.identity-orb--bottom {
    left: -340px;
    bottom: -390px;
    opacity: .55;
}

.identity-header, .identity-shell, .identity-footer {
    position: relative;
    z-index: 1;
    width: min(1240px, calc(100% - 64px));
    margin-inline: auto;
}

.identity-header {
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.identity-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

    .identity-logo img {
        width: auto;
        height: 150px;
        display: block;
    }

.identity-home-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--alto-muted);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s ease;
}

    .identity-home-link:hover {
        color: var(--alto-text);
    }

    .identity-home-link svg {
        width: 18px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.identity-shell {
    min-height: calc(100vh - 156px);
    padding: 72px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.identity-intro {
    max-width: 590px;
}

.identity-eyebrow {
    display: block;
    margin-bottom: 24px;
    color: var(--alto-green);
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .16em;
}

.identity-intro h1 {
    margin: 0 0 24px;
    font-size: clamp(42px, 5.2vw, 72px);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -.055em;
}

    .identity-intro h1 em {
        color: var(--alto-green);
        font-style: normal;
    }

.identity-intro > p {
    max-width: 550px;
    margin: 0 0 42px;
    color: var(--alto-muted);
    font-size: 17px;
    line-height: 1.75;
}

.identity-benefits {
    display: grid;
    gap: 15px;
    margin: 0;
    padding: 0;
    list-style: none;
}

    .identity-benefits li {
        display: flex;
        align-items: center;
        gap: 15px;
        color: #c8d2ce;
        font-size: 14px;
    }

    .identity-benefits span {
        color: var(--alto-green);
        font-family: "JetBrains Mono", monospace;
        font-size: 11px;
    }

.identity-card {
    position: relative;
    overflow: hidden;
    width: min(100%, 620px);
    padding: clamp(30px, 4vw, 50px);
    border: 1px solid var(--alto-line);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(18,28,24,.96), rgba(12,18,16,.96));
    box-shadow: 0 32px 100px rgba(0,0,0,.48), 0 0 0 1px rgba(46,204,143,.025) inset;
    isolation: isolate;
}

.identity-card::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 260px;
    height: 260px;
    top: -170px;
    right: -110px;
    border-radius: 50%;
    background: rgba(46,204,143,.1);
    filter: blur(55px);
}

.identity-card__mark {
    position: absolute;
    top: 0;
    left: 50px;
    width: 54px;
    height: 2px;
    background: var(--alto-green);
    box-shadow: 0 0 22px rgba(46,204,143,.75);
}

.identity-card h1 {
    margin: 0 0 9px;
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 700;
    letter-spacing: -.035em;
}

.identity-card h2, .identity-card h3 {
    margin: 0 0 24px;
    color: var(--alto-muted);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
}

.identity-card hr {
    margin: 20px 0 28px;
    border-color: var(--alto-line);
    opacity: 1;
}

.identity-card .row {
    display: block;
    margin: 0;
}

.identity-card [class*="col-md-"] {
    width: 100%;
    padding: 0;
}

.identity-card section + section, .identity-card .col-md-6.col-md-offset-2 {
    margin-top: 28px;
}

.identity-card p {
    color: var(--alto-muted);
    line-height: 1.65;
}

.identity-card a {
    color: var(--alto-green);
    text-decoration: none;
}

    .identity-card a:hover {
        color: #70e3b8;
    }

.identity-card .form-floating {
    margin-bottom: 18px !important;
}

.identity-card .form-control {
    min-height: 62px;
    border: 1px solid var(--alto-line);
    border-radius: 12px;
    background: rgba(255,255,255,.045);
    color: var(--alto-text);
    font-size: 15px;
}

    .identity-card .form-control:focus {
        border-color: rgba(46,204,143,.65);
        background: rgba(255,255,255,.06);
        color: var(--alto-text);
        box-shadow: 0 0 0 4px rgba(46,204,143,.1);
    }

    .identity-card .form-control:disabled {
        background: rgba(255,255,255,.025);
        color: var(--alto-muted);
    }

.identity-card .form-floating > label {
    color: #81918b;
}

.identity-card .form-floating > .form-control:focus ~ label, .identity-card .form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--alto-muted);
}

.identity-card .form-floating > label::after {
    background: transparent !important;
}

.password-field .form-control {
    padding-right: 58px;
}

.password-toggle {
    position: absolute;
    z-index: 4;
    top: 11px;
    right: 10px;
    display: grid;
    width: 40px;
    height: 40px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--alto-muted);
    transition: color .2s ease, background .2s ease;
}

.password-toggle:hover {
    background: rgba(255,255,255,.06);
    color: var(--alto-text);
}

.password-toggle:focus-visible {
    outline: 2px solid var(--alto-green);
    outline-offset: 1px;
}

.password-toggle svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.password-toggle__hide,
.password-toggle[aria-pressed="true"] .password-toggle__show {
    display: none;
}

.password-toggle[aria-pressed="true"] .password-toggle__hide {
    display: block;
}

.identity-card .form-check-input {
    border-color: rgba(255,255,255,.18);
    background-color: transparent;
}

    .identity-card .form-check-input:checked {
        border-color: var(--alto-green-dark);
        background-color: var(--alto-green-dark);
    }

.identity-card .form-label {
    color: var(--alto-muted);
}

.identity-card .btn-primary {
    min-height: 58px;
    border: 0;
    border-radius: 12px;
    background: var(--alto-green-dark);
    color: white;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(17,168,118,.18);
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

    .identity-card .btn-primary:hover {
        transform: translateY(-1px);
        background: var(--alto-green);
        box-shadow: 0 14px 36px rgba(17,168,118,.25);
    }

.identity-card form > div:last-child:not(.form-floating) p:first-child {
    margin-top: 24px;
}

.identity-card form > div:last-child:not(.form-floating) p {
    margin: 10px 0 0;
    font-size: 14px;
}

.identity-card .text-danger, .identity-card .validation-summary-errors {
    color: var(--alto-danger) !important;
    font-size: 13px;
}

.identity-card .alert {
    border-color: var(--alto-line);
    border-radius: 12px;
    background: rgba(255,255,255,.05);
    color: var(--alto-text);
}

.identity-card .nav-pills {
    gap: 5px;
    margin-bottom: 28px;
}

.client-type-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.client-type-card {
    position: relative;
    min-height: 190px;
    padding: 24px;
    border: 1px solid rgba(46,204,143,.3);
    border-radius: 16px;
    background: rgba(46,204,143,.055);
    color: var(--alto-text);
    text-align: left;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.client-type-card:not(:disabled):hover {
    transform: translateY(-2px);
    border-color: var(--alto-green);
    background: rgba(46,204,143,.1);
}

.client-type-card__icon {
    display: block;
    margin-bottom: 32px;
    color: var(--alto-green);
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
}

.client-type-card strong, .client-type-card small {
    display: block;
}

.client-type-card strong { margin-bottom: 8px; font-size: 17px; }
.client-type-card small { color: var(--alto-muted); line-height: 1.5; }
.client-type-card--disabled { border-color: var(--alto-line); background: rgba(255,255,255,.025); opacity: .65; cursor: not-allowed; }
.client-type-card__badge { position: absolute; top: 18px; right: 18px; padding: 5px 8px; border-radius: 20px; background: rgba(255,255,255,.07); color: var(--alto-muted); font-size: 9px; text-transform: uppercase; }

.registration-fields-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.registration-actions { display: grid; grid-template-columns: minmax(110px, .45fr) 1fr; gap: 12px; margin-top: 6px; }
.registration-actions--single { grid-template-columns: minmax(0, 1fr); }
.registration-actions--single .btn { width: 100%; }
.registration-back { min-height: 58px; border: 1px solid var(--alto-line); border-radius: 12px; background: transparent; color: var(--alto-muted); font-weight: 600; }
.registration-back:hover { border-color: rgba(255,255,255,.2); color: var(--alto-text); }
.registration-login { margin: 20px 0 0; text-align: center; font-size: 14px; }

    .identity-card .nav-pills .nav-link {
        border: 1px solid transparent;
        border-radius: 9px;
        color: var(--alto-muted);
        font-size: 13px;
    }

        .identity-card .nav-pills .nav-link:hover {
            background: rgba(255,255,255,.04);
        }

        .identity-card .nav-pills .nav-link.active {
            border-color: rgba(46,204,143,.22);
            background: rgba(46,204,143,.12);
            color: var(--alto-green);
        }

.identity-footer {
    height: 68px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,.06);
    color: #60706a;
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .identity-shell {
        padding: 46px 0 64px;
    }

    .identity-intro {
        text-align: center;
        margin-inline: auto;
    }

        .identity-intro h1 {
            font-size: clamp(40px, 9vw, 62px);
        }

        .identity-intro > p {
            margin: 0 auto;
        }

    .identity-benefits {
        display: none;
    }

    .identity-card {
        width: min(100%, 560px);
        margin-inline: auto;
    }
}

@media (max-width: 600px) {
    .identity-header, .identity-shell, .identity-footer {
        width: min(100% - 32px, 1240px);
    }

    .identity-header {
        height: 72px;
    }

    .identity-logo img {
        height: 130px;
    }

    .identity-shell {
        min-height: calc(100vh - 128px);
        padding: 34px 0 48px;
        gap: 32px;
    }

    .identity-eyebrow {
        margin-bottom: 16px;
        font-size: 10px;
    }

    .identity-intro h1 {
        margin-bottom: 16px;
        font-size: 38px;
    }

    .identity-intro > p {
        font-size: 14px;
        line-height: 1.65;
    }

    .identity-card {
        padding: 28px 22px;
        border-radius: 18px;
    }

    .identity-card__mark {
        left: 22px;
    }

    .client-type-grid, .registration-fields-grid { grid-template-columns: 1fr; }
    .client-type-card { min-height: 150px; }
    .client-type-card__icon { margin-bottom: 20px; }

    .identity-footer {
        height: 56px;
        justify-content: center;
    }

        .identity-footer span:last-child {
            display: none;
        }
}
