:root {
    --primary-color: #6366f1;
    --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    --error-color: #ef4444;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg-gradient);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.6;
}
.orb-1 { width: 300px; height: 300px; background: #4f46e5; top: -50px; left: -50px; }
.orb-2 { width: 400px; height: 400px; background: #7c3aed; bottom: -100px; right: -100px; }

.container {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 24px;
    width: 100%;
    max-width: 360px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.app-logo {
    width: 80px;
    height: auto;
    margin-bottom: 1.5rem;
    display: inline-block;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

h1 { font-size: 1.5rem; font-weight: 600; margin: 0 0 0.5rem 0; letter-spacing: -0.025em; }
p { color: #94a3b8; font-size: 0.875rem; margin-bottom: 2rem; }
.input-group { margin-bottom: 1rem; text-align: left; }
label { display: block; font-size: 0.75rem; color: #cbd5e1; margin-bottom: 0.5rem; font-weight: 500; }

input {
    width: 100%;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem;
    color: #fff;
    outline: none;
    transition: all 0.2s;
}
input:focus { border-color: var(--primary-color); background: rgba(0, 0, 0, 0.4); }

button {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}
button:hover:not(:disabled) { background: #4f46e5; }
button:disabled { opacity: 0.7; cursor: wait; }

.error-msg {
    margin-top: 1rem;
    color: var(--error-color);
    font-size: 0.8rem;
    display: none;
    background: rgba(239, 68, 68, 0.1);
    padding: 8px;
    border-radius: 6px;
}

.spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.footer { margin-top: 1.5rem; font-size: 0.75rem; color: #64748b; }
.status-dot { height: 8px; width: 8px; background-color: #22c55e; border-radius: 50%; display: inline-block; margin-right: 6px; }