:root {
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

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

.auth-page {
    min-height: 100svh;
    padding: 12px;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(135deg, #74f6dc, #ffc450 40%, #9b17ed 85%);
}

.login-market-bg {
    display: none;
}

.kohinoor-login-shell {
    position: relative;
    isolation: isolate;
    width: min(100%, 420px);
    min-height: 820px;
    margin: 0 auto;
    padding: 24px 30px 25px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 30px;
    background: #02041c;
    box-shadow: 0 15px 40px #08052980;
}

.kohinoor-login-shell::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background: url('../images/invest-pro-background.png') center top / 100% auto no-repeat;
}

.kohinoor-login-shell::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, #02052215, transparent 35%, #030522bb 54%, #03051ff5 71%, #02031c 100%);
}

.auth-back {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #dedff2;
    text-decoration: none;
    font-size: 12px;
    padding: 6px 0;
}

.auth-back:hover {
    color: #ffdb32;
}

.login-intro {
    width: 100%;
    text-align: center;
}

.brand-lockup {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 5px;
    color: white;
    text-decoration: none;
}

.auth-brand-chart {
    display: block;
    width: 145px;
    height: 125px;
    filter: drop-shadow(0 0 12px #6040ff80);
}

.brand-name {
    line-height: 1.1;
}

.brand-name strong {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -1.2px;
    text-shadow: 0 2px 5px #000;
}

.brand-name span {
    color: #ffdd32;
}

.brand-tagline {
    margin: 6px 0 0;
    font-size: 12px;
    color: #f2f1ff;
    text-shadow: 0 2px 5px #000;
}

.auth-scene {
    height: 155px;
}

.login-intro h1 {
    margin: 0 0 23px;
    font-size: 25px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -.6px;
    text-shadow: 0 2px 8px #000;
}

.login-card {
    width: 100%;
    padding: 0;
}

.login-card-inner {
    padding: 0;
}

.alert {
    margin: 0 0 15px;
    padding: 12px;
    border: 1px solid #ffbe5870;
    border-radius: 12px;
    background: #542337b3;
    color: #ffe9dd;
    text-align: center;
    font-size: 13px;
    line-height: 1.5;
}

.signup-alert:empty {
    display: none;
}

.login-field {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 55px;
    margin-bottom: 14px;
    padding: 0 16px;
    border: 1px solid #9189dd50;
    border-radius: 14px;
    background: #080d35dd;
    box-shadow: inset 0 1px 0 #ffffff08, 0 5px 16px #0002;
    transition: border-color .2s, box-shadow .2s;
}

.login-field:focus-within {
    border-color: #42dcff;
    box-shadow: 0 0 0 3px #3dd6ff20;
}

.login-field>i {
    width: 18px;
    flex: 0 0 18px;
    color: #ffd847;
    font-size: 16px;
    text-align: center;
}

.login-field input {
    width: 100%;
    min-width: 0;
    height: 53px;
    border: 0;
    outline: 0;
    padding: 0;
    color: white;
    background: transparent;
    font-family: inherit;
    font-size: 16px;
}

.login-field input::placeholder {
    color: #b9bdd9;
    opacity: 1;
}

.login-field input[readonly] {
    color: #65defa;
}

.login-field input:-webkit-autofill {
    -webkit-text-fill-color: white;
    box-shadow: 0 0 0 100px #080d35 inset;
}

.password-toggle {
    flex: 0 0 32px;
    width: 32px;
    height: 40px;
    padding: 0;
    border: 0;
    color: #c5cae8;
    background: transparent;
    font-size: 16px;
    cursor: pointer;
}

.quick-account-select {
    width: 100%;
    min-height: 48px;
    margin-bottom: 14px;
    padding: 0 12px;
    border: 1px solid #9189dd50;
    border-radius: 12px;
    color: #d8e1ff;
    background: #080d35;
    font-family: inherit;
    font-size: 14px;
}

.quick-account-select[hidden] {
    display: none;
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 2px 0 23px;
    font-size: 12px;
    color: #c8cce4;
}

.remember-me {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
}

.remember-me input {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: #ffce32;
}

.remember-me>span {
    display: none;
}

.forgot-link {
    color: #56deff;
    text-decoration: none;
}

.login-btn {
    position: relative;
    width: 100%;
    min-height: 52px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 12px 24px;
    border: 0;
    border-radius: 30px;
    color: #171325;
    background: linear-gradient(#ffe845, #ffce25 45%, #ff9b21);
    box-shadow: inset 0 1px 2px #fff9, 0 0 18px #ffd32930;
    font-family: inherit;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s, filter .2s;
}

.login-btn>i {
    color: white;
    font-size: 16px;
}

.login-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    filter: brightness(1.07);
}

.login-btn:disabled {
    cursor: wait;
    opacity: .7;
}

.login-btn.btn-loading>* {
    visibility: hidden;
}

.login-btn.btn-loading::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    border: 2px solid #171325;
    border-right-color: transparent;
    border-radius: 50%;
    animation: login-spin .7s linear infinite;
}

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

.login-actions {
    margin: 24px 0 0;
    text-align: center;
}

.signup {
    color: #c9cbe0;
    font-size: 13px;
    line-height: 1.8;
}

.signup a {
    color: #54dfff;
    text-decoration: none;
    font-weight: 600;
    margin-left: 4px;
}

.signup a i {
    display: none;
}

.signup a:hover,
.forgot-link:hover {
    text-decoration: underline;
}

.auth-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: auto 0 0;
    padding-top: 26px;
    color: #9199bf;
    font-size: 11px;
}

.auth-footer i {
    color: #9c75fa;
}

.security-note {
    display: none;
}

a:focus-visible,
button:focus-visible,
select:focus-visible,
input[type='checkbox']:focus-visible {
    outline: 3px solid #50dfff;
    outline-offset: 4px;
}

.kohinoor-signup-page .auth-scene {
    height: 135px;
}

.kohinoor-signup-page .kohinoor-login-shell {
    min-height: 870px;
}

@media (max-width: 480px) {
    .auth-page {
        padding: 0;
        background: #02041c;
    }
    .kohinoor-login-shell {
        width: 100%;
        min-height: 100svh;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        padding: 20px 24px 22px;
    }
    .kohinoor-signup-page .kohinoor-login-shell {
        min-height: 100svh;
    }
    .auth-scene {
        height: clamp(110px, 19svh, 155px);
    }
    .kohinoor-signup-page .auth-scene {
        height: clamp(95px, 16svh, 135px);
    }
    .brand-name strong {
        font-size: clamp(29px, 8.7vw, 34px);
    }
    .login-intro h1 {
        font-size: 24px;
    }
    .signup {
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-btn {
        transition: none;
    }
}

.brand-name strong {
    font-size: clamp(25px, 7vw, 34px) !important;
    line-height: 1.1 !important
}

.brand-name strong span {
    display: block;
    font-size: .66em;
    letter-spacing: 3px
}

.auth-brand-chart {
    object-fit: contain
}