* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    min-height: 100%;
    background: #0a0a0f;
    font-family: 'Inter', sans-serif;
    color: #fff;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 420px;
}

.login-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
}

.login-tab {
    flex: 1;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: transparent;
    color: #71717a;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: color .2s, background .2s, border-color .2s;
}

.login-tab:first-child {
    border-radius: 10px 0 0 10px;
    border-right: none;
}

.login-tab:last-child {
    border-radius: 0 10px 10px 0;
}

.login-tab.active {
    color: #fff;
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .18);
}

.login-panel {
    display: none;
}

.login-panel.active {
    display: block;
}

.login-input {
    width: 100%;
    padding: 16px 18px;
    margin-bottom: 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .04);
    color: #fff;
    font-size: 16px;
    font-family: inherit;
    outline: none;
    transition: border-color .2s;
}

.login-input::placeholder { color: #52525b; }

.login-input:focus {
    border-color: rgba(255, 255, 255, .28);
}

.login-step {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    color: #71717a;
    margin-bottom: 10px;
}

.login-step-title {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 18px;
}

.pin-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.pin-box {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .04);
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    font-family: inherit;
    outline: none;
    transition: border-color .2s, background .2s;
    -webkit-text-security: disc;
}

.pin-box:focus {
    border-color: rgba(255, 255, 255, .35);
    background: rgba(255, 255, 255, .07);
}

.login-status {
    min-height: 20px;
    font-size: 13px;
    text-align: center;
    margin-bottom: 12px;
    color: #71717a;
}

.login-status.err { color: #f87171; }
.login-status.ok  { color: #53FC18; }

.login-btn {
    width: 100%;
    padding: 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: transparent;
    color: #52525b;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: not-allowed;
    transition: color .2s, border-color .2s, background .2s;
}

.login-btn:not(:disabled) {
    color: #fff;
    border-color: rgba(255, 255, 255, .22);
    cursor: pointer;
}

.login-btn:not(:disabled):hover {
    background: rgba(255, 255, 255, .06);
}

.login-twitch {
    width: 100%;
    margin-top: 14px;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid rgba(145, 70, 255, .35);
    background: rgba(145, 70, 255, .08);
    color: #bf94ff;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .2s;
}

.login-twitch:hover {
    background: rgba(145, 70, 255, .14);
}

.login-twitch.hidden { display: none; }

.login-twitch-ico {
    color: #9146ff;
    font-size: 12px;
}
