.auth-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 1000;
    overflow-y: auto;
    padding: 18px;
    padding-bottom: 36px;
}

.auth-container {
    width: 100%;
    max-width: 720px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-xl);
    padding: 0;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    animation: scaleIn 0.3s ease;
    position: relative;
    margin: 0 auto;
    overflow: hidden;
}

.auth-logo {
    text-align: center;
    margin-bottom: 18px;
}

.auth-logo-icon {
    font-size: 36px;
    color: var(--accent);
    margin-bottom: 8px;
}

.auth-logo h1 {
    font-size: calc(29px * var(--text-scale, 1));
    margin-bottom: 5px;
}

.auth-logo h2 {
    font-size: calc(22px * var(--text-scale, 1));
    margin-bottom: 5px;
}

.auth-logo p {
    color: var(--text-muted);
    font-size: calc(14px * var(--text-scale, 1));
}

.auth-logo img {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    margin-bottom: 12px;
}

.auth-desktop-layout {
    display: none;
    flex-direction: row;
    align-items: stretch;
    min-height: 480px;
}

.auth-left-column {
    flex: 1;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--bg-secondary);
    min-width: 320px;
    max-width: 360px;
}

.auth-left-column .auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.auth-left-column .auth-logo-icon {
    font-size: 36px;
    color: var(--accent);
    margin-bottom: 12px;
}

.auth-left-column h1 {
    font-size: 28px;
    margin-bottom: 8px;
}

.auth-left-column p {
    color: var(--text-muted);
    font-size: 14px;
}

.auth-form-desktop {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 16px;
}

.auth-divider {
    width: 1px;
    background: var(--border-color);
    align-self: stretch;
}

.auth-right-column {
    flex: 1;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    min-width: 280px;
}

.auth-mobile-layout {
    display: none;
    flex-direction: column;
    padding: 22px 18px;
}

.qr-auth-block {
    margin-bottom: 20px;
}

.auth-tabs {
    display: flex;
    gap: 7px;
    margin-bottom: 25px;
    background: var(--bg-tertiary);
    padding: 4px;
    border-radius: var(--border-radius-lg);
}

.auth-tab {
    flex: 1;
    padding: 11px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: calc(14px * var(--text-scale, 1));
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    pointer-events: auto;
    font-family: inherit;
}

.auth-tab.active {
    background: var(--accent);
    color: white;
}

.auth-tab:hover:not(.active) {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeIn 0.3s ease;
    max-height: 65vh;
    overflow-y: auto;
}

#loginForm.active,
#registerFormStep1.active,
#registerFormStep2.active,
#registerFormStep3.active {
    display: block;
}

.auth-btn {
    width: 100%;
    padding: 13px;
    background: var(--accent);
    border: none;
    border-radius: var(--border-radius);
    color: white;
    font-size: calc(14px * var(--text-scale, 1));
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 14px;
    transition: all 0.2s ease;
    border: 1px solid var(--accent);
    pointer-events: auto;
    font-family: inherit;
}

.auth-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-hover);
}

.auth-btn:active {
    transform: scale(0.98);
}

.auth-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.auth-back-btn {
    width: 100%;
    padding: 10px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    margin-top: 8px;
    font-size: 13px;
    font-family: inherit;
}

.auth-back-btn:hover {
    color: var(--text-primary);
}

.auth-footer {
    text-align: center;
    margin-top: 22px;
    color: var(--text-muted);
    font-size: 13px;
}

.auth-footer a {
    color: var(--accent);
    font-weight: 500;
    cursor: pointer;
    pointer-events: auto;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.register-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 16px;
}

.progress-step {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
}

.progress-step.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.progress-step.completed {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.progress-line {
    width: 54px;
    height: 2px;
    background: var(--border-color);
    transition: background 0.3s ease;
}

.progress-line.completed {
    background: var(--success);
}

.lang-pill {
    display: flex;
    justify-content: center;
    gap: 2px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.lang-pill-btn {
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 11px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    font-family: inherit;
}

.lang-pill-btn:first-child {
    border-radius: 16px 0 0 16px;
}

.lang-pill-btn:last-child {
    border-radius: 0 16px 16px 0;
}

.lang-pill-btn:not(:first-child):not(:last-child) {
    border-radius: 0;
}

.lang-pill-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.landing-page {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5000;
    padding: 40px 24px;
    overflow-y: auto;
}

.landing-header-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.landing-header-tag svg {
    width: 18px;
    height: 18px;
    fill: var(--accent);
}

.landing-hero-title {
    font-size: calc(2.6rem * var(--text-scale, 1));
    font-weight: 800;
    text-align: center;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.landing-hero-title .highlight {
    background: linear-gradient(135deg, var(--accent), #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-hero-subtitle {
    font-size: calc(1rem * var(--text-scale, 1));
    color: var(--text-muted);
    text-align: center;
    line-height: 1.6;
    max-width: 400px;
    margin-bottom: 50px;
}

.landing-actions-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 340px;
}

.landing-main-btn {
    width: 100%;
    padding: 18px 0;
    border: none;
    border-radius: 30px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: inherit;
}

.landing-main-btn:active {
    transform: scale(0.95);
}

.landing-btn-web {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.landing-btn-web:hover {
    background: rgba(255, 255, 255, 0.14);
}

.landing-btn-download {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.landing-btn-download:hover {
    background: #e6e6e6;
}

.landing-platform-selector {
    display: none;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 340px;
    margin-top: 10px;
}

.landing-platform-selector.active {
    display: flex;
}

.landing-btn-android {
    background: #3b82f6;
    color: white;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.landing-btn-ios {
    background: #8b5cf6;
    color: white;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.landing-android-download {
    display: none;
    width: 100%;
    max-width: 340px;
    margin-top: 10px;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.landing-android-download.active {
    display: flex;
}

.landing-progress-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.landing-progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #a855f7);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.landing-progress-text {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.landing-ios-message {
    display: none;
    margin-top: 15px;
    padding: 14px 20px;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    color: #c084fc;
    font-weight: 500;
    text-align: center;
    width: 100%;
    max-width: 340px;
}

.landing-ios-message.active {
    display: block;
}

.landing-install-btn {
    display: none;
    margin-top: 12px;
    background: #22c55e;
    color: white;
    width: 100%;
    max-width: 340px;
}

.landing-install-btn.active {
    display: flex;
}