* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    min-height: 100vh;
    background: #080b10;
    color: #f5f7fa;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
}

.brand-panel {
    position: relative;
    overflow: hidden;
    padding: 54px 64px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid #202631;
    background:
        radial-gradient(
            circle at 25% 35%,
            rgba(247,147,26,.12),
            transparent 32%
        ),
        linear-gradient(
            145deg,
            #111720 0%,
            #080b10 70%
        );
}

.brand-panel::after {
    content: "₿";
    position: absolute;
    right: -80px;
    bottom: -180px;
    font-size: 620px;
    font-weight: 800;
    line-height: 1;
    color: rgba(255,255,255,.018);
    transform: rotate(8deg);
    pointer-events: none;
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.bitcoin-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: #f7931a;
    color: #090b0f;
    font-size: 29px;
    font-weight: 900;
}

.chainlab {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: .18em;
}

.brand-subtitle {
    margin-top: 4px;
    color: #7f8997;
    font-size: 10px;
    letter-spacing: .19em;
}

.brand-content {
    max-width: 660px;
    position: relative;
    z-index: 1;
}

.eyebrow,
.portal-label {
    color: #f7931a;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .22em;
}

.brand-content h1 {
    margin: 20px 0 24px;
    font-size: clamp(50px, 5vw, 78px);
    line-height: .98;
    letter-spacing: -.045em;
}

.brand-content p {
    max-width: 570px;
    color: #99a3b1;
    font-size: 17px;
    line-height: 1.7;
}

.features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 36px;
}

.features span {
    padding: 10px 13px;
    border: 1px solid #29313d;
    border-radius: 8px;
    color: #aab2bd;
    background: rgba(255,255,255,.025);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
}

.network {
    color: #737e8d;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
}

.pulse {
    width: 8px;
    height: 8px;
    display: inline-block;
    margin-right: 9px;
    border-radius: 50%;
    background: #48d597;
    box-shadow: 0 0 12px rgba(72,213,151,.6);
}

.login-panel {
    padding: 48px;
    display: grid;
    place-items: center;
    background: #0b0f15;
}

.login-box {
    width: min(420px, 100%);
}

.mobile-brand {
    display: none;
}

.login-header {
    margin-bottom: 38px;
}

.login-header h2 {
    margin: 13px 0 10px;
    font-size: 38px;
    letter-spacing: -.035em;
}

.login-header p {
    margin: 0;
    color: #7f8997;
    line-height: 1.6;
}

form label {
    display: block;
    margin: 23px 0 9px;
    color: #818b98;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
}

form input {
    width: 100%;
    height: 55px;
    padding: 0 16px;
    border: 1px solid #28303b;
    border-radius: 8px;
    outline: none;
    background: #10151d;
    color: white;
    font-size: 16px;
    transition: .18s;
}

form input:focus {
    border-color: #f7931a;
    box-shadow: 0 0 0 3px rgba(247,147,26,.08);
}

button {
    width: 100%;
    height: 56px;
    margin-top: 26px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    background: #f7931a;
    color: #0a0c10;
    font-weight: 900;
    letter-spacing: .12em;
    transition: .18s;
}

button:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
}

button:disabled {
    cursor: wait;
    opacity: .65;
}

.error {
    min-height: 21px;
    margin-top: 14px;
    color: #ff7272;
    font-size: 13px;
}

.security {
    margin-top: 27px;
    text-align: center;
    color: #596371;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .16em;
}

.security span {
    color: #48d597;
}

@media (max-width: 850px) {
    .login-shell {
        display: block;
    }

    .brand-panel {
        display: none;
    }

    .login-panel {
        min-height: 100vh;
        padding: 28px;
    }

    .mobile-brand {
        display: block;
        margin-bottom: 55px;
        color: #f7931a;
        font-weight: 900;
        letter-spacing: .18em;
    }
}

/* Login language selector */

.login-language {
    position: fixed;
    top: 28px;
    right: 32px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #697483;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
}

.login-language button {
    width: auto;
    height: auto;
    margin: 0;
    padding: 5px 6px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #697483;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
}

.login-language button:hover {
    transform: none;
    color: #ffffff;
    background: rgba(255,255,255,.04);
}

.login-language button.active {
    color: #f7931a;
    background: rgba(247,147,26,.08);
}

.language-icon {
    margin-right: 2px;
    font-size: 13px;
}

@media (max-width: 850px) {
    .login-language {
        top: 24px;
        right: 22px;
    }
}


/* Forgot password */

.forgot-password {
    margin-top: 10px;
    text-align: right;
}

.forgot-password a {
    color: #818b98;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: .18s;
}

.forgot-password a:hover {
    color: #f7931a;
}


/* CHAINLAB - REGISTRATION FRONTEND */

.register-link {
    margin-top: 20px;
    text-align: center;
    color: #697483;
    font-size: 12px;
    line-height: 1.6;
}

.register-link a {
    margin-left: 5px;
    color: #f7931a;
    font-weight: 800;
    text-decoration: none;
}

.register-link a:hover {
    text-decoration: underline;
}

.field-help {
    margin-top: 7px;
    color: #596371;
    font-size: 11px;
    line-height: 1.45;
}

.auth-message {
    min-height: 21px;
    margin-top: 18px;
    font-size: 13px;
    line-height: 1.5;
}

.auth-message.error-state {
    color: #ff7272;
}

.registration-success,
.verification-box {
    text-align: center;
}

.registration-success h3,
.verification-box h2 {
    margin: 18px 0 12px;
    font-size: 30px;
    letter-spacing: -.03em;
}

.registration-success p,
.verification-box p {
    margin: 0;
    color: #7f8997;
    line-height: 1.7;
}

.success-mark,
.failure-mark {
    width: 64px;
    height: 64px;
    margin: 0 auto 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 30px;
    font-weight: 900;
}

.success-mark {
    color: #48d597;
    background: rgba(72,213,151,.10);
    border: 1px solid rgba(72,213,151,.25);
}

.failure-mark {
    color: #ff7272;
    background: rgba(255,114,114,.08);
    border: 1px solid rgba(255,114,114,.22);
}

.auth-primary-link,
.auth-secondary-button {
    width: 100%;
    min-height: 54px;
    margin-top: 28px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .12em;
    text-decoration: none;
    transition: .18s;
}

.auth-primary-link {
    background: #f7931a;
    color: #0a0c10;
}

.auth-secondary-button {
    border: 1px solid #28303b;
    background: #10151d;
    color: #f5f7fa;
}

.auth-primary-link:hover,
.auth-secondary-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
}

.verification-spinner {
    width: 48px;
    height: 48px;
    margin: 0 auto 26px;
    border: 3px solid #202631;
    border-top-color: #f7931a;
    border-radius: 50%;
    animation: chainlab-spin .8s linear infinite;
}

@keyframes chainlab-spin {
    to {
        transform: rotate(360deg);
    }
}

.register-box {
    padding-top: 18px;
    padding-bottom: 18px;
}

@media (max-width: 850px) {
    .register-box {
        padding-top: 50px;
        padding-bottom: 40px;
    }

    .register-box .mobile-brand {
        margin-bottom: 38px;
    }

    .registration-success h3,
    .verification-box h2 {
        font-size: 27px;
    }
}

@media (max-width: 480px) {
    .login-panel {
        padding-left: 20px;
        padding-right: 20px;
    }

    .login-header h2 {
        font-size: 32px;
    }

    form input {
        height: 52px;
    }
}

/* CHAINLAB - REGISTRATION VISUAL FIX V1 */

.register-box form .field-help {
    margin-top: 7px;
    color: #596371;
    font-size: 11px !important;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: 0;
}

.register-box form label {
    margin-top: 20px;
}

.register-box .login-header {
    margin-bottom: 28px;
}

.register-box #registerButton {
    margin-top: 22px;
}

.register-box .register-link {
    margin-top: 16px;
}

.register-box .security {
    margin-top: 20px;
}

@media (max-height: 850px) and (min-width: 851px) {
    .register-box .login-header {
        margin-bottom: 20px;
    }

    .register-box form label {
        margin-top: 15px;
    }

    .register-box form input {
        height: 50px;
    }

    .register-box #registerButton {
        height: 52px;
        margin-top: 17px;
    }

    .register-box .register-link {
        margin-top: 12px;
    }

    .register-box .security {
        margin-top: 14px;
    }
}


/* CHAINLAB - MOBILE LANGUAGE SCROLL FIX */

@media (max-width: 850px) {
    .login-language {
        position: absolute;
    }
}

