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

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

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

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

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

.brand-panel h1 span {
    color: var(--accent-blue);
}

.brand-panel p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 450px;
}

/* Right Side: Form Content */
.form-panel {
    flex: 1;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 8%;
    box-shadow: -10px 0 30px rgba(0,0,0,0.2);
    z-index: 10;
}

.form-wrapper {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.form-header {
    margin-bottom: 30px;
}

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

.form-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Form Elements */
.input-group {
    margin-bottom: 20px;
}

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

/* Contextual Field Container Styling */
.form-field-container {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.form-field-container label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

/* Unified Dark Input Style */
.input-group input, 
.input-group select,
.form-field-container input,
.form-field-container select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    color: white;
    background: var(--primary-dark);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-group input:focus, 
.input-group select:focus,
.form-field-container input:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: var(--card-bg);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

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

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

.btn-submit:disabled {
    pointer-events: none; 
    opacity: 0.6; 
    background-color: var(--text-muted);
}

.footer-text {
    text-align: center;
    margin-top: 25px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

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

/* Field Errors */
.field-error {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 0.4rem;
    font-weight: 600;
}

/* Search/Input Wrapper for Nexus UI */
.wrapper {
    display: flex;
    background: var(--primary-dark);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 6px;
    width: 100%;
    transition: border-color 0.2s;
}

.wrapper:focus-within {
    border-color: var(--accent-blue);
}

.wrapper input {
    background: transparent;
    border: none;
    outline: none;
    padding: 8px 12px;
    flex-grow: 1;
    color: white;
}

.wrapper button {
    background: var(--card-bg);
    color: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.wrapper button:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
}

/* Decorative Nexus Element */
.nexus-glow {
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .brand-panel { display: none; }
    .form-panel { padding: 0 10%; background: var(--primary-dark); }
}