* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* WebApp стили для черных краев */
html {
    background-color: #000000 !important;
    -webkit-text-size-adjust: 100%;
}

html, body {
    background-color: #000000 !important;
}

/* Основные стили */

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #000000;
    min-height: 100vh;
    overflow-x: hidden;
    color: #ffffff;
    position: relative;
    
    /* Для WebApp черные края */
    -webkit-appearance: none;
    appearance: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

/* Звездное небо */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    border-radius: 50%;
    animation: starTwinkle 4s ease-in-out infinite;
}

/* Маленькие тусклые звезды (фон) */
.particle.small {
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.2);
}

.particle.small:nth-child(1) { width: 1px; height: 1px; top: 15%; left: 12%; animation-delay: 0s; }
.particle.small:nth-child(2) { width: 1px; height: 1px; top: 25%; left: 85%; animation-delay: -1s; }
.particle.small:nth-child(3) { width: 1px; height: 1px; top: 45%; left: 25%; animation-delay: -2s; }
.particle.small:nth-child(4) { width: 1px; height: 1px; top: 65%; left: 75%; animation-delay: -0.5s; }
.particle.small:nth-child(5) { width: 1px; height: 1px; top: 35%; left: 90%; animation-delay: -1.5s; }
.particle.small:nth-child(6) { width: 1px; height: 1px; top: 75%; left: 5%; animation-delay: -2.5s; }
.particle.small:nth-child(7) { width: 1px; height: 1px; top: 8%; left: 65%; animation-delay: -3s; }
.particle.small:nth-child(8) { width: 1px; height: 1px; top: 85%; left: 40%; animation-delay: -0.3s; }
.particle.small:nth-child(9) { width: 1px; height: 1px; top: 55%; left: 15%; animation-delay: -1.8s; }
.particle.small:nth-child(10) { width: 1px; height: 1px; top: 30%; left: 80%; animation-delay: -2.3s; }
.particle.small:nth-child(11) { width: 1px; height: 1px; top: 70%; left: 60%; animation-delay: -3.2s; }
.particle.small:nth-child(12) { width: 1px; height: 1px; top: 90%; left: 30%; animation-delay: -0.8s; }

/* Средние звезды */
.particle.medium {
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.particle.medium:nth-child(13) { width: 2px; height: 2px; top: 20%; left: 40%; animation-delay: -1s; animation-duration: 5s; }
.particle.medium:nth-child(14) { width: 2px; height: 2px; top: 60%; left: 70%; animation-delay: -2s; animation-duration: 6s; }
.particle.medium:nth-child(15) { width: 2px; height: 2px; top: 40%; left: 10%; animation-delay: -3s; animation-duration: 4.5s; }
.particle.medium:nth-child(16) { width: 2px; height: 2px; top: 80%; left: 85%; animation-delay: -1.5s; animation-duration: 5.5s; }
.particle.medium:nth-child(17) { width: 2px; height: 2px; top: 10%; left: 30%; animation-delay: -2.5s; animation-duration: 4.8s; }
.particle.medium:nth-child(18) { width: 2px; height: 2px; top: 50%; left: 95%; animation-delay: -0.7s; animation-duration: 5.2s; }

/* Большие яркие звезды */
.particle.large {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.5), 0 0 24px rgba(255, 255, 255, 0.2);
}

.particle.large:nth-child(19) { width: 3px; height: 3px; top: 25%; left: 60%; animation-delay: -1s; animation-duration: 7s; }
.particle.large:nth-child(20) { width: 3px; height: 3px; top: 70%; left: 35%; animation-delay: -3s; animation-duration: 8s; }
.particle.large:nth-child(21) { width: 3px; height: 3px; top: 45%; left: 80%; animation-delay: -2s; animation-duration: 6.5s; }

/* Движущиеся частицы */
.particle.floating {
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
    animation: floatingParticle 20s linear infinite;
}

.particle.floating:nth-child(22) { width: 1.5px; height: 1.5px; top: 10%; left: -5%; animation-delay: 0s; }
.particle.floating:nth-child(23) { width: 1.5px; height: 1.5px; top: 30%; left: -5%; animation-delay: -5s; }
.particle.floating:nth-child(24) { width: 1.5px; height: 1.5px; top: 50%; left: -5%; animation-delay: -10s; }
.particle.floating:nth-child(25) { width: 1.5px; height: 1.5px; top: 70%; left: -5%; animation-delay: -15s; }
.particle.floating:nth-child(26) { width: 1.5px; height: 1.5px; top: 90%; left: -5%; animation-delay: -8s; }

/* Улучшенные анимации */
@keyframes starTwinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    25% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
    75% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

@keyframes floatingParticle {
    0% {
        transform: translateX(0) translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateX(110vw) translateY(-20px) rotate(180deg);
        opacity: 0;
    }
}

/* Tech grid pattern */
.tech-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.03;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% {
        opacity: 0.02;
    }
    50% {
        opacity: 0.05;
    }
}

/* Ambient освещение */
.ambient-lights {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

.glow-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(29, 78, 216, 0.05) 50%, transparent 70%);
    top: 20%;
    left: 10%;
    animation: ambientFloat1 8s ease-in-out infinite;
}

.glow-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(147, 197, 253, 0.1) 0%, rgba(59, 130, 246, 0.03) 50%, transparent 70%);
    top: 60%;
    right: 15%;
    animation: ambientFloat2 10s ease-in-out infinite;
}

.glow-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 50%, transparent 70%);
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    animation: ambientFloat3 6s ease-in-out infinite;
}

@keyframes ambientFloat1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.4;
    }
    50% {
        transform: translate(20px, -30px) scale(1.1);
        opacity: 0.6;
    }
}

@keyframes ambientFloat2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-30px, 20px) scale(1.2);
        opacity: 0.5;
    }
}

@keyframes ambientFloat3 {
    0%, 100% {
        transform: translateX(-50%) translateY(0) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translateX(-50%) translateY(-20px) scale(1.15);
        opacity: 0.7;
    }
}

/* Floating геометрические элементы */
.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.1;
}

.shape {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.triangle {
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 25px solid rgba(255, 255, 255, 0.1);
    border-top: none;
    top: 25%;
    left: 80%;
    animation: shapeFloat1 12s ease-in-out infinite;
}

.circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    top: 70%;
    left: 15%;
    animation: shapeFloat2 15s ease-in-out infinite;
}

.diamond {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transform: rotate(45deg);
    top: 40%;
    right: 10%;
    animation: shapeFloat3 10s ease-in-out infinite;
}

.square {
    width: 25px;
    height: 25px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    top: 15%;
    left: 30%;
    animation: shapeFloat4 18s ease-in-out infinite;
}

@keyframes shapeFloat1 {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.1;
    }
    50% {
        transform: translateY(-40px) rotate(180deg);
        opacity: 0.3;
    }
}

@keyframes shapeFloat2 {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.1;
    }
    50% {
        transform: translateY(-60px) scale(1.2);
        opacity: 0.25;
    }
}

@keyframes shapeFloat3 {
    0%, 100% {
        transform: rotate(45deg) translateY(0);
        opacity: 0.12;
    }
    50% {
        transform: rotate(225deg) translateY(-30px);
        opacity: 0.3;
    }
}

@keyframes shapeFloat4 {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.08;
    }
    50% {
        transform: translateY(-50px) rotate(90deg);
        opacity: 0.2;
    }
}

.app-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    z-index: 2;
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px 20px 40px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.screen.active {
    opacity: 1;
    transform: translateX(0);
}

.screen.prev {
    transform: translateX(-100%);
}

/* Главный экран */
#welcome-screen {
    text-align: center;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 5px;
}

.logo-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 4px;
    animation: logoAppear 2s ease-out;
}

.logo-glow {
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulseGlow 4s ease-in-out infinite;
}

.logo-quantum {
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 2px 15px rgba(255, 255, 255, 0.08));
    animation: quantumFloat 8s ease-in-out infinite;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.logo-quantum:hover {
    filter: drop-shadow(0 4px 25px rgba(255, 255, 255, 0.2)) drop-shadow(0 0 15px rgba(59, 130, 246, 0.3));
    transform: scale(1.05);
    animation: quantumFloat 8s ease-in-out infinite, logoHoverGlow 2s ease-in-out infinite;
}

@keyframes logoHoverGlow {
    0%, 100% {
        filter: drop-shadow(0 4px 25px rgba(255, 255, 255, 0.2)) drop-shadow(0 0 15px rgba(59, 130, 246, 0.3));
    }
    50% {
        filter: drop-shadow(0 6px 35px rgba(255, 255, 255, 0.3)) drop-shadow(0 0 25px rgba(59, 130, 246, 0.5));
    }
}

.title {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 5px 0;
    line-height: 1.4;
    font-weight: 300;
    text-align: center;
    animation: titleFadeIn 2s ease-out, subtleGlow 4s ease-in-out infinite;
}

@keyframes titleFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes subtleGlow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
    }
    50% {
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    }
}


.highlight {
    display: block;
    background: linear-gradient(45deg, #ffffff, #e0e0e0, #ffffff, #f0f0f0);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    font-size: 32px;
    letter-spacing: 2px;
    margin-top: 8px;
    text-shadow: 0 4px 30px rgba(255, 255, 255, 0.3);
    animation: gradientShift 4s ease-in-out infinite, textGlow 3s ease-in-out infinite alternate;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes textGlow {
    0% {
        filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
    }
    100% {
        filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.6));
    }
}

.content {
    text-align: center;
    max-width: 360px;
    width: 100%;
    position: relative;
}

.logo-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulseGlow 4s ease-in-out infinite;
}

.logo-quantum {
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.1));
    animation: quantumFloat 5s ease-in-out infinite;
}

@keyframes logoAppear {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes quantumFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-3px);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(1.05);
    }
}

@keyframes pulseGlow {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.3;
    }
    50% { 
        transform: scale(1.1);
        opacity: 0.6;
    }
}

@keyframes giftRotate {
    0%, 100% { transform: rotateY(0deg) scale(1); }
    25% { transform: rotateY(5deg) scale(1.05); }
    50% { transform: rotateY(0deg) scale(1.1); }
    75% { transform: rotateY(-5deg) scale(1.05); }
}

.content {
    text-align: center;
    max-width: 360px;
    width: 100%;
    position: relative;
}

.title {
    font-size: 28px;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.3;
    font-weight: 300;
    text-align: center;
}

.title-line {
    display: block;
    font-size: 16px;
    opacity: 0.8;
    margin-bottom: 8px;
    font-weight: 400;
}

.highlight {
    background: linear-gradient(135deg, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    font-size: 32px;
    letter-spacing: 1px;
}

.glow-text {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    margin: 15px 0 25px 0;
    line-height: 1.6;
    text-align: center;
    font-weight: 400;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

.subtitle .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: wordFadeIn 0.6s ease-out forwards;
    margin-right: 0.3em;
}

@keyframes wordFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 0.7;
        transform: translateY(0);
    }
}

.subtitle-accent {
    color: #ffffff;
    font-weight: 500;
    opacity: 0.9;
}

@keyframes titleSlideIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes subtitleFadeIn {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 0.7;
        transform: translateY(0);
    }
}

.login-button {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6, #1e3a8a);
    background-size: 200% 200%;
    color: #ffffff;
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 18px 32px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 20px rgba(59, 130, 246, 0.25),
        0 1px 3px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    animation: buttonGlow 3s ease-in-out infinite, buttonAppear 1.2s ease-out 0.8s both;
}


.login-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s ease;
}

.login-button::after {
    content: '';
    position: absolute;
    inset: -2px;
    padding: 2px;
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.6), rgba(29, 78, 216, 0.8), rgba(59, 130, 246, 0.6));
    border-radius: 18px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.login-button:hover::before {
    left: 100%;
}

.login-button:hover::after {
    opacity: 1;
}

.login-button:hover {
    background-position: 100% 0%;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 12px 40px rgba(59, 130, 246, 0.4),
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.login-button:active {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 
        0 6px 25px rgba(59, 130, 246, 0.35),
        0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Ripple effect при клике */
.login-button:focus::before {
    animation: ripple 0.6s ease-out;
}

@keyframes buttonGlow {
    0%, 100% {
        box-shadow: 
            0 4px 20px rgba(59, 130, 246, 0.25),
            0 1px 3px rgba(0, 0, 0, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow: 
            0 6px 25px rgba(59, 130, 246, 0.35),
            0 2px 8px rgba(0, 0, 0, 0.12),
            inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }
}

@keyframes buttonAppear {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
        box-shadow: 
            0 0 0 rgba(59, 130, 246, 0),
            0 0 0 rgba(0, 0, 0, 0),
            inset 0 0 0 rgba(255, 255, 255, 0);
    }
    50% {
        opacity: 0.7;
        transform: translateY(10px) scale(0.95);
    }
    80% {
        opacity: 0.9;
        transform: translateY(-5px) scale(1.05);
        box-shadow: 
            0 8px 30px rgba(59, 130, 246, 0.4),
            0 3px 10px rgba(0, 0, 0, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        box-shadow: 
            0 4px 20px rgba(59, 130, 246, 0.25),
            0 1px 3px rgba(0, 0, 0, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

.telegram-icon {
    width: 24px;
    height: 24px;
}

/* Экран загрузки */
.loading-container {
    text-align: center;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 32px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-title,
.screen-title {
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 16px;
    font-weight: 400;
    text-align: center;
}

.loading-subtitle,
.screen-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    line-height: 1.5;
    margin-bottom: 32px;
}

@keyframes titleGlow {
    0% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    }
    100% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    }
}

.code-input-container,
.input-container {
    margin-bottom: 24px;
}

.code-input,
.password-input {
    width: 100%;
    padding: 18px;
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.4);
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    backdrop-filter: blur(15px);
    transition: all 0.4s ease;
    box-shadow: 
        inset 0 0 20px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(0, 255, 136, 0.1);
}

.code-input::placeholder,
.password-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

.code-input:focus,
.password-input:focus {
    outline: none;
    border-color: #00ff88;
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    box-shadow: 
        inset 0 0 20px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(0, 255, 136, 0.4),
        0 0 10px rgba(0, 255, 136, 0.2);
    transform: translateY(-1px);
}

.password-input {
    text-align: left;
}

.action-button {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 16px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.action-button:enabled:hover {
    background: linear-gradient(135deg, #1d4ed8, #60a5fa);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.action-button:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
    box-shadow: none;
}

.resend-button {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    backdrop-filter: blur(10px);
}

.resend-button:hover {
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Экран успеха */
.success-icon {
    width: 80px;
    height: 80px;
    color: #00ff88;
    margin: 0 auto 32px;
    animation: successPulse 2s ease-in-out infinite;
}

.success-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px rgba(0, 255, 136, 0.6));
}

/* Экран ошибки */
.error-icon {
    width: 80px;
    height: 80px;
    color: #ff4444;
    margin: 0 auto 32px;
    animation: errorShake 0.5s ease-in-out;
}

.error-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px rgba(255, 68, 68, 0.6));
}

@keyframes successPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 20px rgba(0, 255, 136, 0.6));
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 30px rgba(0, 255, 136, 0.8));
    }
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Адаптивность */
@media (max-width: 375px) {
    .content {
        max-width: 280px;
    }
    
    .title {
        font-size: 24px;
    }
    
    .logo-circle {
        width: 100px;
        height: 100px;
    }
    
    .logo-text {
        font-size: 28px;
    }
}

/* Анимация появления элементов */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.screen.active .content {
    animation: fadeInUp 0.5s ease-out;
}

.screen.active .loading-container {
    animation: fadeInUp 0.5s ease-out;
}
