/* ============================================================
   Manbah Gas — Shared Auth Styles (login + reset password)
   ============================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --flame: #f37429;
    --flame-dark: #c9531a;
    --flame-light: #ffab6e;
    --steel: #1a1f2e;
    --steel-mid: #252b3b;
    --steel-light: #2f374d;
    --smoke: #8b95aa;
    --white: #f4f6fb;
    --border: rgba(243, 116, 41, 0.25);
}

html {
    height: 100%;
}

body {
    height: 100%;
    min-height: 100vh;
    font-family: 'Barlow', sans-serif;
    background-color: var(--steel);
    color: var(--white);
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch;
    overflow: hidden;
}

/* ── Left Banner Panel ── */
.banner-panel {
    position: relative;
    flex: 1.1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.banner-panel img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.45) saturate(0.7);
    transform: scale(1.04);
    animation: slowZoom 18s ease-in-out infinite alternate;
}

@keyframes slowZoom {
    from {
        transform: scale(1.04);
    }

    to {
        transform: scale(1.12);
    }
}

.banner-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(243, 116, 41, 0.18) 0%,
            transparent 50%,
            rgba(26, 31, 46, 0.85) 100%);
    pointer-events: none;
}

.banner-content {
    position: relative;
    z-index: 2;
    padding: 48px 52px;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(243, 116, 41, 0.15);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 6px 14px;
    margin-bottom: 28px;
    backdrop-filter: blur(6px);
}

.brand-badge span {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--flame-light);
}

.banner-headline {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 800;
    line-height: 1.05;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.banner-headline em {
    font-style: normal;
    color: var(--flame);
}

.banner-sub {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 300;
    line-height: 1.6;
    max-width: 340px;
    margin-bottom: 36px;
}

.stats-row {
    display: flex;
    gap: 32px;
}

.stat {
    border-left: 2px solid var(--flame);
    padding-left: 14px;
}

.stat-number {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--flame-light);
    line-height: 1;
}

.stat-label {
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 3px;
}

/* ── Right Login / Form Panel ── */
.login-panel {
    flex: 0 0 420px;
    background: var(--steel-mid);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 48px;
    position: relative;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

/* Top accent bar */
.login-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--flame-dark), var(--flame), var(--flame-light));
}

/* Subtle grid texture */
.login-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

.login-inner {
    position: relative;
    z-index: 1;
}

/* Logo */
.login-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--flame-dark), var(--flame));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(243, 116, 41, 0.4);
    flex-shrink: 0;
}

.logo-text {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
    color: #fff;
}

.logo-text small {
    display: block;
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--smoke);
    font-weight: 400;
}

/* Back link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--smoke);
    text-decoration: none;
    margin-bottom: 20px;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--flame);
}

/* Titles */
.login-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    margin-bottom: 6px;
}

.login-subtitle {
    font-size: 13px;
    color: var(--smoke);
    margin-bottom: 28px;
    font-weight: 300;
    line-height: 1.6;
}

/* Alerts */
.alert-success {
    background: rgba(39, 174, 96, 0.12);
    border: 1px solid rgba(39, 174, 96, 0.35);
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 13px;
    color: #6ddc9a;
    margin-bottom: 20px;
}

.alert-error {
    background: rgba(231, 76, 60, 0.12);
    border: 1px solid rgba(231, 76, 60, 0.35);
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 13px;
    color: #f08080;
    margin-bottom: 20px;
}

/* Form */
.form-group {
    margin-bottom: 22px;
}

.form-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--smoke);
    margin-bottom: 8px;
}

.input-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--smoke);
    pointer-events: none;
    transition: color 0.2s;
}

.input-wrap:focus-within .input-icon {
    color: var(--flame);
}

.form-control {
    width: 100%;
    background: var(--steel-light);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #fff;
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    padding: 13px 14px 13px 42px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.form-control:focus {
    border-color: var(--flame);
    box-shadow: 0 0 0 3px rgba(243, 116, 41, 0.15);
}

.form-control.is-invalid {
    border-color: #e74c3c;
}

.invalid-feedback {
    display: block;
    color: #e74c3c;
    font-size: 12px;
    margin-top: 6px;
}

/* OTP info callout */
.otp-info {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    background: rgba(243, 116, 41, 0.08);
    border: 1px solid rgba(243, 116, 41, 0.2);
    border-radius: 7px;
    padding: 11px 14px;
    font-size: 12.5px;
    color: rgba(255, 200, 150, 0.8);
    line-height: 1.55;
    margin-bottom: 24px;
}

/* Remember me */
.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}

.form-check-input {
    width: 16px;
    height: 16px;
    accent-color: var(--flame);
    cursor: pointer;
    flex-shrink: 0;
}

.form-check-label {
    font-size: 13px;
    color: var(--smoke);
    cursor: pointer;
    user-select: none;
}

/* Submit button */
.btn-login {
    width: 100%;
    background: linear-gradient(135deg, var(--flame-dark) 0%, var(--flame) 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 15px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 18px rgba(243, 116, 41, 0.35);
    margin-bottom: 20px;
}

.btn-login::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent);
    opacity: 0;
    transition: opacity 0.2s;
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(243, 116, 41, 0.5);
}

.btn-login:hover::after {
    opacity: 1;
}

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

/* Forgot / back link row */
.forgot-row {
    text-align: center;
    font-size: 13px;
    color: var(--smoke);
}

.forgot-row a {
    color: var(--flame);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.forgot-row a:hover {
    color: var(--flame-light);
    text-decoration: underline;
}

/* Footer */
.footer-note {
    text-align: center;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 1px;
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    body {
        flex-direction: column;
        overflow: auto;
    }

    .banner-panel {
        flex: none;
        height: 220px;
    }

    .login-panel {
        flex: none;
        padding: 40px 28px;
    }

    .stats-row {
        flex-wrap: wrap;
        gap: 20px;
    }
}