:root {
    --primary: #020617;      /* Deep Midnight */
    --secondary: #0f172a;    /* Slate 900 */
    --accent: #2563eb;       /* NUST Blue */
    --bg-dark: #070b14;      /* Content Midnight */
    --text-main: #f1f5f9;    /* Slate 100 */
    --text-muted: #94a3b8;   /* Slate 400 */
    --border: #1e293b;       /* Slate 800 */
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }

body {
    display: flex;
    height: 100vh;
    background-color: var(--primary);
    color: var(--text-main);
}

/* Left Side: Visual/Branding */
.brand-side {
    flex: 1.2;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px;
    color: white;
    position: relative;
    overflow: hidden;
    border-right: 1px solid var(--border);
}

.brand-side h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    z-index: 1;
    letter-spacing: -2px;
}

.brand-side span { color: var(--accent); }

.brand-side p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 420px;
    line-height: 1.7;
    z-index: 1;
}

/* Decorative "Nexus" element */
.nexus-bg {
    position: absolute;
    top: 15%;
    right: -15%;
    width: 600px;
    height: 600px;
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 50%;
    pointer-events: none;
    box-shadow: inset 0 0 50px rgba(59, 130, 246, 0.05);
}

/* Right Side: Login Form */
.form-side {
    flex: 1;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 10%;
}

.form-container {
    max-width: 400px;
    width: 100%;
}

.form-container h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-main);
    letter-spacing: -1px;
}

.form-container p {
    color: var(--text-muted);
    margin-bottom: 32px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-group input {
    width: 100%;
    padding: 14px 18px;
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    color: white;
    outline: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-group input:focus {
    border-color: var(--accent);
    background: var(--secondary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.actions a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.btn-login {
    width: 100%;
    padding: 16px;
    background-color: var(--accent);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-login:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3);
}

.signup-link {
    text-align: center;
    margin-top: 32px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.signup-link a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
}

@media (max-width: 1100px) {
    .brand-side { display: none; }
    .form-side { background: var(--primary); }
}