* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
    display: flex; align-items: center; justify-content: center; min-height: 100vh;
    color: #334155; position: relative; overflow: hidden;
}
.bg-shape-1 {
    position: absolute; top: -20%; left: -10%; width: 60vw; height: 60vw;
    background: radial-gradient(circle, rgba(37,99,235,0.06) 0%, rgba(255,255,255,0) 70%); z-index: 0;
}
.bg-shape-2 {
    position: absolute; bottom: -20%; right: -10%; width: 50vw; height: 50vw;
    background: radial-gradient(circle, rgba(56,189,248,0.08) 0%, rgba(255,255,255,0) 70%); z-index: 0;
}
.login-box {
    position: relative; z-index: 1;
    background: #ffffff; width: 100%; max-width: 400px;
    padding: 45px 40px; border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.8);
}
.header { text-align: center; margin-bottom: 35px; }
.header svg {
    width: 46px; height: 46px; margin-bottom: 15px;
    fill: none; stroke: #2563eb; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.header h1 { font-size: 22px; color: #0f172a; margin: 0; font-weight: 600; letter-spacing: -0.5px; }
.form-group { margin-bottom: 22px; }
label { display: block; font-size: 13px; color: #475569; margin-bottom: 8px; font-weight: 500; }
input[type="text"], input[type="password"] {
    width: 100%; padding: 12px 16px; background-color: #f8fafc;
    border: 1px solid #e2e8f0; border-radius: 10px; font-size: 14px; color: #0f172a;
    transition: all 0.2s ease;
}
input:focus {
    outline: none; border-color: #3b82f6; background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}
.btn {
    width: 100%; background: linear-gradient(to right, #2563eb, #3b82f6);
    color: white; padding: 12px; border: none; border-radius: 10px;
    font-size: 14px; font-weight: 600; cursor: pointer; margin-top: 5px;
    transition: transform 0.1s, box-shadow 0.2s;
    display: flex; justify-content: center; align-items: center; gap: 10px;
}
.btn:hover { box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3); transform: translateY(-1px); }
.btn:disabled { background: #93c5fd; cursor: wait; transform: none; box-shadow: none; }
.spinner {
    display: none; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.error {
    display: none; background-color: #fef2f2; border: 1px solid #fecaca;
    border-left: 4px solid #ef4444; color: #991b1b; padding: 12px 16px;
    font-size: 13px; margin-bottom: 25px; border-radius: 8px; line-height: 1.5;
    animation: slideDown 0.3s ease;
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.footer { text-align: center; margin-top: 30px; font-size: 12px; color: #94a3b8; line-height: 1.6; }
