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

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

.login-container {
    width: 100%;
    max-width: 420px;
}

.login-box {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.5s ease-in-out;
}

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

.logo { text-align: center; margin-bottom: 32px; }
.logo h1 { color: #667eea; font-size: 32px; font-weight: 700; margin-bottom: 8px; }
.logo p { color: #6b7280; font-size: 14px; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; color: #374151; font-weight: 500; font-size: 14px; }
.form-group input {
    width: 100%; padding: 12px 16px; border: 2px solid #e5e7eb;
    border-radius: 8px; font-size: 14px; transition: all 0.3s ease; background-color: #f9fafb;
}
.form-group input:focus {
    outline: none; border-color: #667eea;
    background-color: white; box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.error-message {
    color: #dc2626; font-size: 13px; margin-bottom: 16px;
    padding: 12px; background-color: #fee2e2; border-radius: 8px;
    display: none; animation: shake 0.3s ease-in-out;
}
.error-message.show { display: block; }

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.btn-login {
    width: 100%; padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white; border: none; border-radius: 8px;
    font-size: 16px; font-weight: 600; cursor: pointer;
    transition: all 0.3s ease; box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}
.btn-login:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5); }
.btn-login:active { transform: translateY(0); }
.btn-login:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.login-footer { margin-top: 24px; text-align: center; }
.login-footer p { color: #9ca3af; font-size: 12px; }

@media (max-width: 480px) {
    .login-box { padding: 24px; }
    .logo h1 { font-size: 28px; }
}
