/* --- Brand Variable Setup --- */
:root {
    --nex-blue: #0076CE;       /* Electric blue from your logo ring */
    --nex-blue-hover: #005fa8; /* Darker blue for hover states */
    --nex-dark: #121212;       /* Deep charcoal system background */
    --nex-gray: #7F8C8D;       /* Slate/Metallic gray */
    --font-main: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
}

body {
    background-color: var(--nex-dark);
    height: 100vh;
    overflow: hidden;
}

/* Container Split Setup */
.login-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* --- Left Side: Tech Banner Graphic --- */
.hero-sidebar {
    position: relative;
    width: 50%;
    height: 100%;
    /* Replace 'background-banner.webp' with your downloaded image path */
    background: url('/static/background-banner.webp') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Subtle overlay to guarantee your brand text pops over the graphics */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(18, 18, 18, 0.85) 0%, rgba(0, 118, 206, 0.2) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
    padding: 2rem;
}

.brand-logo {
    width: 100px;
    height: 100px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 15px rgba(0, 118, 206, 0.6));
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
}

.hero-content p {
    color: #e0e0e0;
    font-size: 1.1rem;
    font-weight: 300;
}

/* --- Right Side: Clean Form Area --- */
.form-section {
    width: 50%;
    height: 100%;
    background-color: #1a1a1a; /* Clean slate alternative dark mode background */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
}

.form-wrapper {
    width: 100%;
    max-width: 420px;
    color: #ffffff;
}

.form-wrapper h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: #a0a0a0;
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
}

/* Input Fields */
.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #cdcdcd;
}

.input-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--nex-blue);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 8px rgba(0, 118, 206, 0.3);
}

/* Extra Form Actions */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    margin-bottom: 2rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #a0a0a0;
    cursor: pointer;
}

.forgot-pass {
    color: var(--nex-blue);
    text-decoration: none;
    font-weight: 500;
}

.forgot-pass:hover {
    text-decoration: underline;
}

/* Primary Action Button */
.login-btn {
    width: 100%;
    padding: 0.85rem;
    background: var(--nex-blue);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 118, 206, 0.3);
}

.login-btn:hover {
    background: var(--nex-blue-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 118, 206, 0.4);
}

.login-btn:active {
    transform: translateY(0);
}

/* Footer layout */
footer {
    margin-top: 3rem;
    font-size: 0.8rem;
    color: #666666;
    text-align: center;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 900px) {
    .hero-sidebar {
        display: none; /* Hide the big hero image completely on mobile screens */
    }
    .form-section {
        width: 100%;
        padding: 2rem;
    }
}
/* Go Template Alert Boxes */
.alert {
    padding: 0.85rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.alert-error {
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid #e74c3c;
    color: #ff6b6b;
}

.alert-success {
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid #2ecc71;
    color: #2ecc71;
}

/* Footer Link Optimization */
.signup-link {
    color: var(--nex-blue);
    text-decoration: none;
    font-weight: 600;
}

.signup-link:hover {
    text-decoration: underline;
}

.copyright {
    margin-top: 1rem;
    font-size: 0.75rem;
    color: #555555;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}
