/* ==========================================
   AFEX Workbench Identity & Theme Variables
   ========================================== */
:root {
    --brand-primary: #006838;
    /* AFEX Corporate Deep Green */
    --brand-primary-hover: #004d2a;
    --brand-accent: #10b981;
    /* Vibrant Emerald */
    --bg-main: #f9fafb;
    /* Modern Off-white background */
    --bg-card: #ffffff;
    --text-main: #111827;
    /* Slate 900 */
    --text-muted: #4b5563;
    /* Slate 600 */
    --text-placeholder: #9ca3af;
    --border-color: #d1d5db;
    /* Light Gray border */
    --border-focus: #006838;
    --radius-xl: 12px;
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition-fast: all 0.15s ease-in-out;
}

/* Global Reset adjustments for Auth layout */
body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-h: 100vh;
}

/* ==========================================
   Layout & Container Definitions
   ========================================== */
/* 1. MOBILE LOGIC (Default state for small screens) */
/* ==========================================
   Layout & Container Definitions
   ========================================== */

/* Universal Layout Foundations */
.auth-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-main);
}

/* Right-side panel area */
.auth-right-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 40px 24px;
    box-sizing: border-box;
    width: 100%;
}

/* Hidden by default on mobile interfaces */
.auth-left-banner {
    display: none;
}

/* Mobile-First: Form layout card container */
.auth-card {
    background-color: var(--bg-card);
    width: 100%;
    max-width: 400px; /* Constrains the width tightly for an elegant form feel */
    padding: 32px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    box-sizing: border-box;
}

/* Mobile logo placement */
.auth-logo-wrapper {
    width: 100%;
    max-width: 400px;
    text-align: center;
    margin-bottom: 24px;
}

.auth-logo {
    height: 40px;
    object-fit: contain;
}


/* ==========================================
   DESKTOP RESPONSIVE GRID (768px and up)
   ========================================== */
@media (min-width: 768px) {
    .auth-container {
        display: grid;
        grid-template-columns: 1.1fr 0.9fr; /* Gives slightly more screen space to the graphic image */
        height: 100vh;
        overflow: hidden;
    }

    /* Enables left window block with background local webp file */
    .auth-left-banner {
        display: block;
        background-image: url("../assets/background-c282a158.webp");
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        width: 100%;
        height: 100%;
    }

    /* Centers the contents inside the column view block */
    .auth-right-panel {
        padding: 60px;
        height: 100vh;
        justify-content: center;
    }

    /* Flattens the login box card directly against the clean right side panel background */
    .auth-card {
        box-shadow: none;
        background: transparent;
        padding: 0;
    }

    /* Aligns the brand identity perfectly flush-left with the form fields beneath it */
    .auth-logo-wrapper {
        text-align: left;
        margin-bottom: 32px;
    }

    .auth-logo {
        height: 44px;
    }
}
/* ==========================================
   Form Controls & Elements
   ========================================== */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-main);
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-sizing: border-box;
    transition: var(--transition-fast);
}

.form-control::placeholder {
    color: var(--text-placeholder);
}

.form-control:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 4px rgba(0, 104, 56, 0.1);
}

/* Interactive Password Toggle Visibility Action button */
.password-toggle-btn {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-placeholder);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.password-toggle-btn:hover {
    color: var(--text-muted);
}

/* Meta Section (Remember Session parameters) */
.auth-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    margin-top: 4px;
}

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

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

.forgot-password-link {
    color: var(--brand-primary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
}

.forgot-password-link:hover {
    color: var(--brand-primary-hover);
}

/* Core Submission Button */
.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background-color: var(--brand-primary);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    padding: 14px;
    border: none;
    border-radius: var(--radius-xl);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition-fast);
}

.btn-submit:hover {
    background-color: var(--brand-primary-hover);
}

.btn-submit:active {
    transform: scale(0.99);
}

/* ==========================================
   Alert Framework & Messages
   ========================================== */
.alert-container {
    width: 100%;
    max-width: 420px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-xl);
    font-size: 14px;
}

.alert-danger {
    background-color: #fef2f2;
    border: 1px solid #fee2e2;
    color: #b91c1c;
}

.alert-danger i {
    color: #ef4444;
}

/* Footer elements mapping */
.auth-footer {
    margin-top: 28px;
    text-align: center;
}

.auth-footer-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-primary);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: var(--transition-fast);
}

.auth-footer-link:hover {
    color: var(--brand-primary-hover);
    border-bottom-color: var(--brand-primary-hover);
}