* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

#app {
    width: 100%;
    max-width: 430px;
    min-height: 100vh;
    position: relative;
}

.screen {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.container {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.logo {
    text-align: center;
    margin-bottom: 40px;
}

.logo-icon {
    font-size: 80px;
    margin-bottom: 10px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.logo h1 {
    font-size: 32px;
    color: #667eea;
    margin-bottom: 5px;
    font-weight: 800;
}

.subtitle {
    color: #888;
    font-size: 14px;
    margin-top: 5px;
}

.password-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.password-form input {
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

.password-form input:focus {
    border-color: #667eea;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:active {
    transform: scale(0.98);
}

.error-msg {
    color: #e74c3c;
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    min-height: 20px;
}

/* Главный экран */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 20px 20px 0 0;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.header h2 {
    font-size: 24px;
    font-weight: 700;
}

.subtitle-small {
    font-size: 12px;
    opacity: 0.9;
    margin-top: 2px;
}

.content {
    background: #f8f9fa;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.card:active {
    transform: scale(0.98);
}

.card-icon {
    font-size: 40px;
    flex-shrink: 0;
}

.card h3 {
    color: #333;
    font-size: 16px;
    margin-bottom: 5px;
}

.card p {
    color: #888;
    font-size: 14px;
}

.footer {
    background: white;
    padding: 20px;
    text-align: center;
    border-radius: 0 0 20px 20px;
    color: #888;
    font-size: 12px;
}

/* Адаптивность */
@media (max-width: 480px) {
    body {
        padding: 0;
    }
    
    .container {
        border-radius: 0;
        min-height: 100vh;
    }
    
    .header {
        border-radius: 0;
    }
    
    .content {
        border-radius: 0;
    }
    
    .footer {
        border-radius: 0;
    }
}
