* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0a0a0a;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    color: white;
}

.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIj48ZmlsdGVyIGlkPSJmIj48ZmVUdXJidWxlbmNlIHR5cGU9ImZyYWN0YWxOb2lzZSIgYmFzZUZyZXF1ZW5jeT0iLjc0IiBudW1PY3RhdmVzPSIzIiAvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbHRlcj0idXJsKCNmKSIgb3BhY2l0eT0iMC4wNCIgLz48L3N2Zz4=');
    pointer-events: none;
    opacity: 0.4;
    z-index: 1;
}

.gradient-bg {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(0, 255, 157, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(0, 100, 255, 0.03) 0%, transparent 50%);
    z-index: 0;
    animation: rotate 60s infinite linear;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.main-container {
    position: relative;
    z-index: 10;
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    padding: 2.5rem;
    width: min(800px, 90%);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 1rem;
}

.accent {
    color: #00ff9d;
}

h1 {
    font-weight: 500;
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.9);
}

#mnemonic-container {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.mnemonic-column {
    flex: 1;
    max-width: 300px;
}

.word-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    width: 100%;
}

.word-number {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    min-width: 35px;
    text-align: right;
    font-family: monospace;
}

.word-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 0.95rem;
    color: white;
    outline: none;
    transition: all 0.2s ease;
    font-family: 'Inter', monospace;
}

.word-input:focus {
    border-color: #00ff9d;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 3px rgba(0, 255, 157, 0.2);
}

.word-input.valid {
    border-color: #00ff9d;
    background: rgba(0, 255, 157, 0.1);
}

.word-input.invalid {
    border-color: #ff4d4d;
    background: rgba(255, 77, 77, 0.1);
}

.word-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
    font-style: italic;
    font-size: 0.85rem;
}

.paste-hint {
    text-align: center;
    margin: 1rem 0;
    color: #00ff9d;
    cursor: pointer;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.paste-hint:hover {
    opacity: 1;
    text-decoration: underline;
}

.separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: rgba(255,255,255,0.3);
    font-size: 0.9rem;
}

.separator::before,
.separator::after {
    content: "";
    flex: 1;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin: 0 10px;
}

.link-btn {
    display: block;
    text-align: center;
    color: white;
    text-decoration: none;
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 30px;
    transition: all 0.2s;
    font-weight: 500;
}

.link-btn:hover {
    border-color: #00ff9d;
    background: rgba(0, 255, 157, 0.1);
    color: #00ff9d;
}

#login-btn {
    display: block;
    width: 100%;
    background: #00ff9d;
    color: #0a0a0a;
    border: none;
    border-radius: 30px;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 1.5rem;
}

#login-btn:hover {
    background: #00cc7a;
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(0,255,157,0.3);
}

/* Стили для скроллбара */
.main-container::-webkit-scrollbar {
    width: 8px;
}

.main-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.main-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.main-container::-webkit-scrollbar-thumb:hover {
    background: #00ff9d;
}

/* Адаптивность для мобильных */
@media (max-width: 600px) {
    .main-container {
        padding: 1.5rem;
    }
    
    #mnemonic-container {
        flex-direction: column;
        gap: 0;
    }
    
    .mnemonic-column {
        max-width: 100%;
    }
    
    h1 {
        font-size: 1.2rem;
    }
}