/* ==========================================================================
   1. CORE APPLICATION DESIGN ENGINE GLOBAL DATA VARIABLES
   ========================================================================== */
:root {
    --forest-primary: #2d8659;
    --forest-hover: #195539;
    --forest-accent: #4da576;
    --champagne: #e0a84e;
    --bg-dark: #0f1419;
    --bg-slate-card: rgba(26, 31, 46, 0.7);
    --border-subtle: rgba(148, 163, 184, 0.12);
    
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --text-inputs: #e2e8f0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-dark);
    min-height: 100vh;
    color: var(--text-primary);
    overflow-x: hidden;
    letter-spacing: -0.011em;
}

/* Custom Componentized Native Scrollbar Engine */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(15, 20, 25, 0.3);
}
::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.2);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.35);
}

/* ==========================================================================
   2. APPLICATION MULTI-PANEL VIEWPORT ENGINE GRID
   ========================================================================== */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem;
    position: relative;
    z-index: 10;
}

.auth-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.auth-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
}

/* Institutional Side Panel Layout */
.branding-side {
    display: none; /* Fallback baseline architecture state for devices */
}

.brand-logo-box {
    margin-bottom: 2.5rem;
}

.brand-logo {
    height: 48px;
    width: auto;
}

.welcome-content {
    margin-bottom: 2.5rem;
}

.welcome-title {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--text-primary);
}

.highlight-text {
    color: var(--forest-accent);
}

.welcome-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 1rem;
}

/* Benefits Grid Element Items Block */
.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.benefit-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background-color: #1a1f2e;
    flex-shrink: 0;
    font-size: 0.95rem;
}

.text-forest { color: var(--forest-accent); }
.text-gold { color: var(--champagne); }

.benefit-heading {
    font-size: 0.925rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.benefit-caption {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* User Input Right Execution Card Base */
.form-side {
    width: 100%;
}

.mobile-logo-box {
    text-align: center;
    margin-bottom: 2rem;
}

.brand-logo-mobile {
    height: 40px;
    width: auto;
}

/* ==========================================================================
   3. STRUCTURAL COMPONENT FORM CARD ENGINE DESIGNS
   ========================================================================== */
.auth-card {
    background: var(--bg-slate-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.card-header {
    margin-bottom: 2rem;
}

.form-title {
    font-size: 1.65rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-subtitle {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.5;
}

.secure-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Flex-Grid Matrix Dual Columns Structure */
.form-row {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.field-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.required-indicator {
    color: #ef4444;
}

.field-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.field-icon {
    position: absolute;
    left: 1.15rem;
    color: #475569;
    font-size: 1.05rem;
    pointer-events: none;
    z-index: 5;
}

/* Custom Dropdown Chevron Positioning Overlays */
.field-chevron {
    position: absolute;
    right: 1.15rem;
    color: #475569;
    font-size: 0.875rem;
    pointer-events: none;
    z-index: 5;
}

.auth-input {
    width: 100%;
    background: rgba(15, 20, 25, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.15);
    color: var(--text-inputs);
    padding: 0.85rem 1.15rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-input:focus {
    background: rgba(15, 20, 25, 0.85);
    border-color: var(--forest-primary);
    box-shadow: 0 0 0 3px rgba(45, 134, 89, 0.15);
    outline: none;
}

.auth-input.has-left-icon {
    padding-left: 3.2rem;
}

.auth-input.has-right-trigger {
    padding-right: 3.2rem;
}

.auth-input.has-right-chevron {
    padding-right: 3.2rem;
}

select.auth-input {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

select.auth-input option {
    background-color: var(--bg-dark);
    color: var(--text-inputs);
}

.auth-input::placeholder {
    color: rgba(226, 232, 240, 0.25);
}

.field-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

/* Custom Dynamic Input Key Interactors */
.password-toggle-trigger {
    position: absolute;
    right: 1.15rem;
    background: none;
    border: none;
    color: #475569;
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.2s ease;
    z-index: 5;
}

.password-toggle-trigger:hover {
    color: var(--text-secondary);
}

/* Custom Styled Selection Fields */
.checkbox-group {
    margin: 0.5rem 0;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    position: relative;
    cursor: pointer;
    user-select: none;
}

.native-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.custom-checkbox {
    height: 18px;
    width: 18px;
    background-color: #334155;
    border-radius: 4px;
    margin-right: 0.75rem;
    position: relative;
    flex-shrink: 0;
    margin-top: 0.15rem;
    transition: all 0.2s ease;
}

.checkbox-container:hover .native-checkbox ~ .custom-checkbox {
    background-color: #475569;
}

.checkbox-container .native-checkbox:checked ~ .custom-checkbox {
    background-color: var(--forest-primary);
}

.custom-checkbox::after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container .native-checkbox:checked ~ .custom-checkbox::after {
    display: block;
}

.checkbox-label {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.5;
}

/* Custom Interactive Execution Control Buttons */
.auth-submit-btn {
    width: 100%;
    background-color: var(--forest-primary);
    color: var(--text-primary);
    border: none;
    padding: 0.95rem;
    border-radius: 12px;
    font-size: 0.925rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.auth-submit-btn:hover {
    background-color: var(--forest-hover);
}

.auth-submit-btn:active {
    transform: scale(0.99);
}

.arrow-icon {
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

.auth-submit-btn:hover .arrow-icon {
    transform: translateX(4px);
}

/* Secondary Routing Layout Breaks */
.divider-row {
    position: relative;
    text-align: center;
    margin: 0.75rem 0;
}

.divider-row::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #334155;
    z-index: 1;
}

.divider-text {
    position: relative;
    background-color: #1a1f2e;
    padding: 0 1.25rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    z-index: 2;
}

.auth-login-btn {
    width: 100%;
    background-color: transparent;
    border: 1px solid rgba(45, 134, 89, 0.3);
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.95rem;
    border-radius: 12px;
    font-size: 0.925rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: all 0.2s ease;
}

.auth-login-btn:hover {
    border-color: rgba(45, 134, 89, 0.6);
    background-color: rgba(45, 134, 89, 0.05);
    color: var(--text-primary);
}

.auth-link {
    color: var(--forest-primary);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

.auth-link:hover {
    color: var(--forest-accent);
}

/* ==========================================================================
   4. DEVICE GRID RESPONSIVE MULTI-MEDIA BREAKPOINTS
   ========================================================================== */
@media (min-width: 768px) {
    .form-row {
        flex-direction: row;
    }
}

@media (min-width: 992px) {
    .auth-grid {
        grid-template-columns: 2fr 3fr;
        gap: 4rem;
    }
    
    .branding-side {
        display: block;
        position: sticky;
        top: 2.5rem;
    }
    
    .mobile-logo-box {
        display: none;
    }
    
    .auth-card {
        padding: 2.5rem;
    }
}