body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    min-height: 100vh;
    overflow: hidden;
    background: #667eea;
}

.login-bg-anim {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
    overflow: hidden;
}

.login-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-form {
    background: rgba(255,255,255,0.97);
    padding: 2.5rem 2rem 2rem 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(102,126,234,0.15);
    width: 320px;
    max-width: 90vw;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    animation: fadeInUp 1s cubic-bezier(.23,1.01,.32,1) both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px);}
    to { opacity: 1; transform: translateY(0);}
}

.login-form h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.7rem;
    color: #667eea;
    text-align: center;
    letter-spacing: 1px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.form-group label {
    font-size: 1rem;
    color: #444;
    font-weight: 500;
}

.form-group input {
    padding: 0.7rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
    transition: border 0.2s;
}

.form-group input:focus {
    border-color: #667eea;
}

.btn-primary {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.8rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 0.5rem;
}

.btn-primary:hover {
    background: linear-gradient(90deg, #764ba2 0%, #667eea 100%);
}

.login-error {
    background: #ffeaea;
    color: #c0392b;
    border: 1px solid #e57373;
    border-radius: 5px;
    padding: 0.7rem 1rem;
    margin-bottom: 0.5rem;
    text-align: center;
    font-size: 1rem;
}

.login-success {
    background: #eaffea;
    color: #2e7d32;
    border: 1px solid #81c784;
    border-radius: 5px;
    padding: 0.7rem 1rem;
    margin-bottom: 0.5rem;
    text-align: center;
    font-size: 1rem;
}

.login-switch {
    text-align: center;
    margin-top: 0.5rem;
}

.login-switch a {
    color: #667eea;
    text-decoration: underline;
    font-size: 0.98rem;
    transition: color 0.2s;
}

.login-switch a:hover {
    color: #764ba2;
}
