* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    max-width: 450px;
    width: 100%;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    padding: 40px;
    animation: slideUp 0.5s ease;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
}

.logo svg {
    transition: transform 0.3s ease;
}

.logo:hover svg {
    transform: scale(1.1);
}

.logo span {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
}

.login-card h1 {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 32px;
}

.input-group {
    margin-bottom: 24px;
}

.input-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #4a4a4a;
    margin-bottom: 8px;
}

.input-group input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #e1e1e1;
    border-radius: 12px;
    transition: all 0.3s ease;
    outline: none;
}

.input-group input:focus {
    border-color: #0061FF;
    box-shadow: 0 0 0 4px rgba(0,97,255,0.1);
}

.input-group input:hover {
    border-color: #b3b3b3;
}

.error-message {
    background-color: #ffebee;
    color: #c62828;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 24px;
    border-left: 4px solid #c62828;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.error-message.show {
    opacity: 1;
    transform: translateY(0);
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: #0061FF;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.login-btn:hover {
    background: #0052d6;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,97,255,0.3);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.login-btn.loading {
    color: transparent;
}

.login-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spinner 0.8s linear infinite;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

.divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
    color: #666;
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: #e1e1e1;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px;
    border: 2px solid #e1e1e1;
    border-radius: 12px;
    background: white;
    font-size: 16px;
    font-weight: 500;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.social-btn:hover {
    background: #f5f5f5;
    border-color: #b3b3b3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.social-btn:active {
    transform: translateY(0);
}

.social-btn svg {
    transition: transform 0.3s ease;
}

.social-btn:hover svg {
    transform: scale(1.1);
}

.links {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
}

.links a {
    color: #0061FF;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #0061FF;
    transition: width 0.3s ease;
}

.links a:hover {
    color: #0052d6;
}

.links a:hover::after {
    width: 100%;
}

.demo-notice {
    text-align: center;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #e1e1e1;
    color: #999;
    font-size: 12px;
}

/* Адаптивность */
@media (max-width: 480px) {
    .container {
        padding: 24px;
    }
    
    .login-card h1 {
        font-size: 24px;
    }
    
    .social-btn {
        font-size: 14px;
    }
}