/* login.css - Highly Optimized for fast First Contentful Paint (FCP) */

:root {
    --bg-page: #0d1117;
    --bg-card: rgba(22, 27, 34, 0.7);
    --border-color: #30363d;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --input-bg: rgba(13, 17, 23, 0.8);
    --accent-blue: #2f81f7;
    --accent-blue-hover: #1f6feb;
    --border-radius: 12px;
    --transition-fast: 0.15s ease;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-primary);
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow: hidden;
    z-index: 0;
}

/* --- Multi-Circle Ambient Background --- */
.circle {
    position: absolute;
    border-radius: 50%;
    z-index: -1;
    filter: blur(80px); /* Heavy blur for lighting effect */
    opacity: 0.5;
    animation: blinkMove 10s infinite alternate cubic-bezier(0.45, 0.05, 0.55, 0.95);
    pointer-events: none; /* Prevent interacting with background */
}

.circle-1 {
    width: 60vw;
    height: 60vw;
    max-width: 800px;
    max-height: 800px;
    background: radial-gradient(circle, rgba(47, 129, 247, 0.4) 0%, rgba(13, 17, 23, 0) 70%);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.circle-2 {
    width: 70vw;
    height: 70vw;
    max-width: 900px;
    max-height: 900px;
    background: radial-gradient(circle, rgba(137, 87, 229, 0.3) 0%, rgba(13, 17, 23, 0) 70%);
    bottom: -20%;
    right: -10%;
    animation-delay: -4s;
    animation-duration: 14s;
}

.circle-3 {
    width: 45vw;
    height: 45vw;
    max-width: 600px;
    max-height: 600px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.35) 0%, rgba(13, 17, 23, 0) 70%);
    top: 30%;
    left: 40%;
    animation-delay: -7s;
    animation-duration: 8s;
}

@keyframes blinkMove {
    0% { transform: scale(0.8) translate(0, 0); opacity: 0.2; }
    50% { transform: scale(1.1) translate(5%, 5%); opacity: 0.7; }
    100% { transform: scale(0.9) translate(-5%, -10%); opacity: 0.3; }
}

.login-container {
    width: 90%;
    max-width: 380px;
    padding: 40px 32px;
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1;
}

.login-header {
    text-align: center;
    margin-bottom: 24px;
}

.login-header h1 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.login-header p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    font-family: inherit;
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    box-sizing: border-box;
    transition: border-color var(--transition-fast);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.submit-btn {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    background-color: var(--accent-blue);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color var(--transition-fast);
    margin-top: 8px;
}

.submit-btn:hover {
    background-color: var(--accent-blue-hover);
}

.error-message {
    color: #d73a49;
    font-size: 13px;
    text-align: center;
    margin-top: 16px;
    min-height: 20px;
    font-weight: 500;
}