:root {
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

body::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59,130,246,0.1) 0%, rgba(15,23,42,0) 70%);
    z-index: -1;
    pointer-events: none;
}

.login-card {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    margin: 20px;
    position: relative;
    overflow: hidden;
}

.brand-bar {
    width: 100%;
    height: 4px;
    background: var(--accent-blue);
    position: absolute;
    top: 0;
    left: 0;
}

.login-card h1 {
    font-size: 1.75em;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 8px;
    font-weight: 700;
}

.login-card .subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95em;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}
        
.form-group label {
    display: block;
    font-size: 0.85em;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    color: var(--text-main);
    transition: all 0.2s ease;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.error {
    background: rgba(220, 38, 38, 0.1);
    color: #ef4444;
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 8px;
    padding: 12px;
    font-size: 0.9em;
    margin-bottom: 20px;
    text-align: center;
}

button[type="submit"],
.btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--accent-blue);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

button[type="submit"]:hover,
.btn-primary:hover {
    background: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

button[type="submit"]:disabled {
    background: #475569;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
    color: #94a3b8;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 22px 0 18px 0;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.divider span {
    padding: 0 12px;
}

/* Guest Demo Button */
.btn-guest {
    width: 100%;
    padding: 13px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    font-size: 0.95em;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-guest:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(59, 130, 246, 0.15) 100%);
    border-color: rgba(139, 92, 246, 0.4);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.25);
    transform: translateY(-1px);
}

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

.sparkle-icon {
    font-size: 1.1em;
}