﻿

.auth-form h1 {
    margin-top: 0;
    margin-bottom: 8px;
    color: var(--t1);
    font-family: var(--fd), sans-serif;
    font-weight: 700;
    font-size: 22px;
}

.auth-form .field {
    margin: 16px 0;
}

.auth-form .field label {
    display: block;
    margin-bottom: 6px;
    color: var(--t3);
    font-family: var(--fm), monospace;
    font-size: 10px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.auth-form .field input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--brd);
    border-radius: 11px;
    background: var(--bg3);
    color: var(--t1);
    box-sizing: border-box;
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-form .field input::placeholder {
    color: var(--t3);
}

.auth-form .field input:focus {
    border-color: rgba(61, 139, 255, 0.35);
    box-shadow: 0 0 0 3px rgba(61, 139, 255, 0.08);
}

.auth-form button {
    padding: 12px;
    background: var(--acc);
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    width: 100%;
    margin-top: 8px;
    font-family: var(--fd), sans-serif;
    font-weight: 700;
    font-size: 15px;
    transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}

.auth-form button:hover:not(:disabled) {
    background: #5a9fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--accg);
}

.auth-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-form .error {
    color: var(--red);
    font-size: 13px;
}

.auth-form a {
    color: var(--acc);
    text-decoration: none;
}

.auth-form a:hover {
    text-decoration: underline;
}

.auth-form p {
    color: var(--t3);
    margin-top: 16px;
    font-size: 13px;
}

.auth-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg0);
    padding: 40px 20px;
}

.auth-logo {
    font-family: var(--fd), sans-serif;
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 16px;
}

.auth-logo-tone {
    background: linear-gradient(135deg, var(--acc), var(--a2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-logo-voice {
    color: var(--t1);
}

.auth-heading {
    font-family: var(--fd), sans-serif;
    font-weight: 700;
    font-size: 32px;
    color: var(--t1);
    text-align: center;
    max-width: 520px;
    line-height: 1.15;
    margin: 0 0 8px;
}

.auth-subheading {
    font-size: 15px;
    color: var(--t2);
    text-align: center;
    max-width: 420px;
    margin: 0 0 32px;
}
/*
.auth-cards {
    display: flex;
    
    
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
} */
.auth-cards {
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    max-width: 820px;
    width: 100%;
    margin: 0 auto;
}

.auth-card-left,
.auth-card-right {
    flex: 1; /* Обе карточки занимают одинаковое пространство */
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--brd);
    background: var(--bg2);
    padding: 32px;
    min-width: 0; /* Важно для flex-контейнеров */
}

.auth-card-right {
    background: var(--bg1);
    border-left: none; /* Убираем дублирование границы */
}

.auth-card-right-placeholder {
    display: block;
    margin-bottom: 6px;
    font-family: var(--fm), fantasy;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--t3);
}

.auth-card-right h2 {
    font-family: var(--fd), sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--t1);
    margin: 0 0 16px;
}

.auth-tabs {
    display: flex;
    background: var(--bg1);
    border-radius: 10px;
    padding: 3px;
    margin-bottom: 24px;
}

.auth-tab {
    flex: 1;
    padding: 8px;
    border: none;
    background: none;
    border-radius: 8px;
    color: var(--t3);
    font-family: var(--fd), sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background 0.12s, color 0.12s;
}

.auth-tab:hover {
    color: var(--t2);
    text-decoration: none;
}

.auth-tab.active {
    background: var(--bg4);
    color: var(--t1);
}

.auth-field {
    margin-bottom: 16px;
}

.auth-field label {
    display: block;
    margin-bottom: 6px;
    font-family: var(--fm), monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--t3);
}

.auth-field input,
.auth-field  {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg3);
    border: 1px solid var(--brd);
    border-radius: 10px;
    color: var(--t1);
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-field input::placeholder {
    color: var(--t3);
}

.auth-field input:focus {
    border-color: rgba(61, 139, 255, 0.35);
    box-shadow: 0 0 0 3px rgba(61, 139, 255, 0.08);
}

.auth-field-password {
    position: relative;
}

.auth-field-password input {
    padding-right: 40px;
}

.auth-password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--t3);
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    transition: color 0.12s;
}

.auth-password-toggle:hover {
    color: var(--t2);
}

.auth-forgot {
    font-family: var(--fm), monospace;
    font-size: 12px;
    color: var(--acc);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 16px;
}

.auth-forgot:hover {
    text-decoration: underline;
}

.auth-submit {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 12px;
    font-family: var(--fd), sans-serif;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}

.auth-submit--login {
    background: var(--acc);
    color: #fff;
}

.auth-submit--login:hover:not(:disabled) {
    background: #5a9fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--accg);
}

.auth-submit--register {
    background: var(--a2);
    color: #0a0b0f;
}

.auth-submit--register:hover:not(:disabled) {
    background: #00c98a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--a2g);
}

.auth-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-switch {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: var(--t3);
}

.auth-switch a {
    color: var(--acc);
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.auth-error {
    color: var(--red);
    font-size: 13px;
    margin-bottom: 12px;
    padding: 8px 12px;
    background: rgba(255, 68, 68, 0.06);
    border-radius: 8px;
    border-left: 3px solid var(--red);
}

/* Password strength bar */
.password-strength {
    margin-top: 8px;
}

.password-strength-bars {
    display: flex;
    gap: 4px;
    margin-bottom: 4px;
}

.password-strength-bar {
    flex: 1;
    height: 3px;
    border-radius: 2px;
    background: var(--bg4);
    transition: background 0.2s;
}


.password-strength-label {
    font-family: var(--fm), monospace;
    font-size: 11px;
}

/* Password entry screen */
.password-entry-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at 50% 20%, rgba(255, 71, 87, .05) 0%, transparent 60%), var(--bg0);
}

.password-entry-card {
    width: 400px;
    max-width: 90vw;
    background: var(--bg1);
    border: 1px solid var(--brd);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .5);
}

.password-entry-banner {
    height: 100px;
    background: linear-gradient(135deg, #1a0a0f, #0f1117);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.password-entry-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 120%, rgba(255, 71, 87, .12), transparent 60%);
}

.password-entry-icon {
    font-size: 32px;
    position: relative;
    z-index: 1;
}

.password-entry-name {
    font-family: var(--fd), sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--t1);
    letter-spacing: .5px;
    position: relative;
    z-index: 1;
}

.password-entry-body {
    padding: 28px;
}

.password-entry-hint {
    font-size: 14px;
    color: var(--t2);
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.5;
}

.password-entry-field {
    margin-bottom: 20px;
}

.password-entry-field .fi {
    margin-top: 6px;
}

.password-entry-error {
    font-family: var(--fb), monospace;
    font-size: 11px;
    color: var(--red);
    margin-bottom: 12px;
}

.password-entry-actions {
    display: flex;
    gap: 10px;
}

.password-entry-btn-back {
    padding: 12px 18px;
    border-radius: 10px;
    border: 1px solid var(--brd);
    background: transparent;
    color: var(--t2);
    font-family: var(--fb), sans-serif;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s, color .15s;
}

.password-entry-btn-back:hover {
    background: var(--bg3);
    color: var(--t1);
}

.password-entry-btn-submit {
    flex: 1;
    padding: 13px;
    border-radius: 10px;
    border: none;
    background: var(--acc);
    color: #fff;
    font-family: var(--fd), sans-serif;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .5px;
    cursor: pointer;
    transition: all .15s;
}

.password-entry-btn-submit:hover:not(:disabled) {
    background: #5a9fff;
}

.password-entry-btn-submit:disabled {
    opacity: .7;
    cursor: not-allowed;
}

.password-entry-footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--brd);
    text-align: center;
    font-size: 12px;
    color: var(--t3);
}

.password-entry-link {
    color: var(--acc);
    text-decoration: none;
}

.password-entry-link:hover {
    text-decoration: underline;
}


/* Profile card (right panel) */
.profile-card {
    width: 260px;
    min-width: 260px;
    background: var(--bg1);
    border-left: 1px solid var(--brd);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    flex-shrink: 0;
}

.profile-card-banner {
    height: 80px;
    background: linear-gradient(135deg, var(--acc), #a855f7);
    position: relative;
    flex-shrink: 0;
}

.profile-card-actions {
    position: absolute;
    top: 10px;
    right: 16px;
}

.profile-card-btn {
    padding: 5px 12px;
    background: var(--acc);
    border: none;
    border-radius: 7px;
    color: #fff;
    font-family: var(--fb), sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.15s;
}

.profile-card-btn:hover {
    opacity: 0.9;
}

.profile-card-playing {
    padding: 10px;
    background: var(--bg3);
    border-radius: 8px;
    border: 1px solid var(--brd);
}

.profile-card-game {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

.profile-card-game-icon {
    width: 36px;
    height: 36px;
    border-radius: 7px;
    background: linear-gradient(135deg, #ff6b35, #f7c59f);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.profile-card-game-name {
    font-family: var(--fd), sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--t1);
}

.profile-card-game-sub {
    font-family: var(--fb), sans-serif;
    font-size: 11px;
    color: var(--t2);
}

.profile-card-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--acc), #a855f7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--fd), sans-serif;
    font-weight: 700;
    font-size: 20px;
    position: absolute;
    bottom: -26px;
    left: 16px;
    border: 4px solid var(--bg1);
}

.profile-card-avatar .status-dot {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 12px;
    height: 12px;
    border: 3px solid var(--bg1);
}

.profile-card-body {
    padding: 34px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-card-name {
    font-family: var(--fd), sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--t1);
    margin: 0;
}

.profile-card-tag {
    font-family: var(--fb), monospace;
    font-size: 11px;
    color: var(--t3);
    margin-top: -8px;
}

.profile-card-status {
    background: var(--bg3);
    border-radius: 8px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-card-status-text {
    font-size: 13px;
    color: var(--t2);
}

.profile-card-status-icon {
    font-size: 14px;
    color: var(--a2);
}

.profile-card-divider {
    height: 1px;
    background: var(--brd);
    margin: 0;
}

.profile-card-section-title {
    font-family: var(--fb), sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: var(--t3);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0;
}

.profile-card-servers {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.profile-card-server {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 6px;
    border-radius: 6px;
    transition: background 0.12s;
    cursor: pointer;
}

.profile-card-server:hover {
    background: var(--bg3);
}

.profile-card-server-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--bg3);
    color: var(--t2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--fd), sans-serif;
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
}

.profile-card-server-name {
    font-size: 13px;
    color: var(--t2);
}


.settings-nav-item .bi {
    font-size: 15px;
    opacity: 0.7;
}

.toggle-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.toggle-switch input:checked ~ .toggle-knob {
    transform: translateX(18px);
}


/* User panel at sidebar bottom */
.user-panel {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg0);
    border-top: 1px solid var(--brd);
    border-right: 1px solid var(--brd);
    flex-shrink: 0;
}

.user-panel-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--fd), sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--t1);
    flex-shrink: 0;
    position: relative;
}

.user-panel-avatar .status-dot {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border: 2px solid var(--bg0);
    border-radius: 50%;
}

.user-panel-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.user-panel-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--t1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-panel-status {
    font-size: 11px;
    color: var(--t3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-panel-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.user-panel-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--t3);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.12s, color 0.12s;
}

.user-panel-btn:hover {
    background: var(--bg3);
    color: var(--t1);
}