:root {
    --bg-color: #f1f5f9;
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --accent-color: #4f46e5;
    --accent-hover: #4338ca;
    --error-color: #ef4444;
    --success-color: #22c55e;
    --border-radius: 8px;
    --input-bg: #f8fafc;
    --input-border: #e2e8f0;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    /* Removed global flex to avoid conflicts with admin pages */
}

/* Login Page Specific Styles */
.login-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.login-intro {
    flex: 1;
    background-color: #111827;
    /* Dark background */
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 2rem;
    text-align: center;
}

/* Optional pattern for the dark side */
.intro-background-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(#374151 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.1;
    pointer-events: none;
}

.intro-content {
    position: relative;
    z-index: 10;
    max-width: 480px;
}

.intro-logo {
    width: 120px;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.login-intro h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.login-intro p {
    font-size: 1.125rem;
    color: #9ca3af;
    line-height: 1.6;
}

.login-container {
    flex: 1;
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.login-form-wrapper {
    width: 100%;
    max-width: 400px;
}

.brand-header {
    margin-bottom: 2.5rem;
    text-align: left;
    /* Aligned left as per reference but can be centered */
}

.brand-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.brand-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: #f8fafc;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--transition);
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.btn-primary {
    width: 100%;
    padding: 0.875rem;
    background-color: #2563eb;
    /* A nice bright blue */
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: #1d4ed8;
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-danger {
    background-color: #fef2f2;
    color: var(--error-color);
    border: 1px solid #fee2e2;
}

/* Responsive */
@media (max-width: 768px) {
    .login-wrapper {
        flex-direction: column;
    }

    .login-intro {
        padding: 3rem 1.5rem;
        flex: 0 0 auto;
    }

    .login-intro h1 {
        font-size: 2rem;
    }

    .login-container {
        padding: 3rem 1.5rem;
        flex: 1 0 auto;
    }
}