* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #0f172a;
    overflow: hidden;
}

#waveCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.login-box {
    position: relative;
    z-index: 10;
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(12px);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 360px;
    text-align: center;
}

.logo {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

h1 {
    color: white;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    letter-spacing: -0.5px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

input:focus {
    border-color: #3b82f6;
}

/* Единый стиль placeholder для всех полей */
input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-size: 15px;
    letter-spacing: 0;
}

/* Стили для 2FA */
#twoFAContainer {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#twoFACode {
    text-align: left;
    letter-spacing: 4px;
    font-size: 18px;
    font-weight: 500;
}

/* Placeholder 2FA такой же как у остальных */
#twoFACode::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-size: 15px;
    letter-spacing: 0;
    font-weight: 400;
}

.hint {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    margin: 0;
}

button {
    width: 100%;
    padding: 12px;
    background: #3b82f6;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
}

button:hover {
    background: #2563eb;
}

button:active {
    transform: scale(0.98);
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Сообщение об ошибке */
.error-message {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

/* Анимация тряски */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-5px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.5s;
}