:root {
    --brand-green-dark: #044b32; /* Exact dark green from logo */
    --brand-green-light: #7da139; /* Exact light green from logo */
    --brand-orange: #f28b20; /* Exact orange from logo */
    --brand-blue: #086985;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
}

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

body {
    min-height: 100vh;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
}

/* Split-pane card container - Compact & Centered */
.login-split-container {
    display: flex;
    width: 100%;
    max-width: 1300px;
    background: #ffffff;
    align-items: center;
    justify-content: center;
}

/* Left Branding Section */
.left-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 90px;
}

.logo-container {
    margin-bottom: 20px;
    max-width: 420px;
    width: 100%;
}

.logo-img {
    max-width: 100%;
    height: 140px;
    object-fit: contain;
    display: block;
}

.system-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 8px;
    line-height: 1.1;
}

.part-uttaradit {
    color: var(--brand-green-dark);
}

.part-food {
    color: var(--brand-green-light);
}

.part-chain {
    color: var(--brand-orange);
}

.system-version {
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.system-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 16px;
    max-width: 340px;
}

/* Thin vertical divider in the middle */
.vertical-divider {
    width: 1px;
    height: 320px;
    background-color: var(--border-color);
}

/* Right Form Section */
.right-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 90px;
}

/* Top users icon */
.users-header-icon {
    color: var(--brand-green-dark);
    font-size: 2.2rem;
    margin-bottom: 32px;
    opacity: 0.85;
}

/* Error alert */
.error-alert {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.82rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.login-form {
    width: 100%;
    max-width: 380px; /* Constrain the form form elements only */
}

/* Form input fields */
.input-group {
    margin-bottom: 18px;
    width: 100%;
}

.input-wrapper {
    display: flex;
    align-items: center;
    border: none;
    border-bottom: 2px solid var(--border-color);
    border-radius: 0;
    background: transparent;
    transition: all 0.2s ease;
    height: 56px;
    overflow: hidden;
}

.input-wrapper:focus-within {
    border-color: var(--brand-orange);
    box-shadow: none;
}

.input-icon {
    color: var(--text-muted);
    font-size: 0.95rem;
    width: 32px;
    text-align: left;
    opacity: 0.7;
}

.input-field {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 12px 12px 0;
    font-size: 0.95rem;
    color: var(--text-dark);
    background: transparent;
    width: 100%;
}

.input-field::placeholder {
    color: #a0aec0;
}

.password-toggle {
    color: var(--text-muted);
    cursor: pointer;
    padding: 0 16px;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: var(--brand-green-dark);
}

/* Options Row */
.options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    margin-bottom: 28px;
    width: 100%;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
}

.remember-me input {
    accent-color: var(--brand-green-dark);
    width: 16px;
    height: 16px;
    cursor: pointer;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.back-home {
    color: var(--brand-green-dark);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.back-home:hover {
    color: var(--brand-orange);
}

/* Submit Button */
.btn-submit {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 10px;
    background: var(--brand-green-dark);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 12px rgba(4, 75, 50, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

.btn-submit:hover {
    background: var(--brand-orange);
    box-shadow: 0 6px 16px rgba(242, 139, 32, 0.25);
    transform: translateY(-1px);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
    .login-split-container {
        flex-direction: column;
        justify-content: center;
        padding: 20px;
    }

    .left-section {
        flex: none;
        padding: 20px 0;
    }

    .vertical-divider {
        width: 80%;
        height: 1px;
        margin: 20px 0;
    }

    .right-section {
        flex: none;
        padding: 20px 0;
        max-width: 100%;
    }
}
