/* ================================================================
   Admin Login Page — Cart Image Left + Card Right
   Value4Kart | July 2026
================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Reset outer auth-wrapper ────────────────────────────────────── */
.auth-wrapper:has(.al-page),
.auth-wrapper:has(.al-page) .auth-content,
.auth-wrapper:has(.al-page) > div {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    min-height: 100vh !important;
    position: static !important;
}
.auth-wrapper:has(.al-page) .auth-bg { display: none !important; }
.auth-wrapper:has(.al-page) .card,
.auth-wrapper:has(.al-page) .card-body {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}
.auth-wrapper:has(.al-page) { overflow: hidden !important; }

body:has(.al-page) {
    margin: 0 !important;
    padding: 0 !important;
    background: #f3f4f6 !important;
}

/* ── Page wrapper ────────────────────────────────────────────────── */
.al-page {
    display: flex;
    min-height: 100vh;
    width: 100%;
    font-family: 'Inter', sans-serif;
    background: #f3f4f6;
}
.al-orb-mid { display: none; }

/* ================================================================
   LEFT PANEL — cart illustration as full background
================================================================ */
.al-left {
    width: 55%;
    min-height: 100vh;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    background-color: #1e293b;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

/* Dark gradient overlay so text is readable */
.al-left__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.70) 0%,
        rgba(15, 23, 42, 0.50) 50%,
        rgba(15, 23, 42, 0.75) 100%
    );
    z-index: 1;
}

.al-left__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2.5rem 3rem;
    min-height: 100vh;
    text-align: left;
}

/* Logo — top left */
.al-left__logo-wrap { display: flex; align-items: center; justify-content: flex-start; }

/* Center the main text block vertically */
.al-left__text {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    padding: 2rem 0;
}
.al-left__logo-img {
    max-height: 50px;
    max-width: 160px;
    object-fit: contain;
    filter: none;
}

/* Bottom text */
.al-left__text { width: 100%; }

.al-left__heading {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 0.65rem 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
}
.al-left__sub {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.70);
    line-height: 1.7;
    margin: 0 0 1.5rem 0;
    max-width: 360px;
}

/* Feature list */
.al-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.al-features li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: rgba(255,255,255,0.88);
    font-size: 0.9rem;
    font-weight: 500;
}
.al-features li svg {
    flex-shrink: 0;
    background: rgba(255,255,255,0.18);
    border-radius: 50%;
    padding: 3px;
}

.al-left__footer {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.35);
}

.al-left__illustration { display: none; }

/* ================================================================
   RIGHT PANEL — centered card on grey background
================================================================ */
.al-right {
    flex: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    padding: 2rem;
}

/* The actual white card */
.al-right__form-wrap {
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow:
        0 4px 6px rgba(0,0,0,0.05),
        0 10px 40px rgba(0,0,0,0.08);
    padding: 2.75rem 2.5rem;
}
.al-right__form-wrap::before { display: none; }
.al-right__form-wrap > * { position: static; z-index: auto; }

/* Logo centered at top of card */
.al-right__logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.al-right__logo img {
    max-height: 50px;
    max-width: 160px;
    object-fit: contain;
    filter: none;
}

/* Title centered */
.al-right__title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #111827;
    margin: 0 0 0.3rem 0;
    text-align: center;
    letter-spacing: -0.02em;
    text-shadow: none;
}

/* Subtitle centered */
.al-right__subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0 0 1.75rem 0;
    text-align: center;
    font-weight: 400;
}

/* ── Fields ──────────────────────────────────────────────────────── */
.al-field { margin-bottom: 1rem; }

.al-label {
    display: block;
    font-size: 0.83rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.35rem;
    text-transform: none;
    letter-spacing: 0;
}

.al-input {
    width: 100%;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.7rem 1rem;
    font-size: 0.92rem;
    color: #111827;
    background: #f9fafb;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}
.al-input:focus {
    border-color: #6366f1;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}
.al-input::placeholder { color: #9ca3af; }

.al-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.al-input-icon {
    position: absolute;
    left: 0.85rem;
    color: #9ca3af;
    pointer-events: none;
    z-index: 2;
    transition: color 0.2s;
}
.al-input-wrap:focus-within .al-input-icon { color: #6366f1; }
.al-input-icon.dark { color: #6b7280; }
.al-input-wrap .al-input { padding-left: 2.5rem; padding-right: 2.5rem; }

.al-eye-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    padding: 0;
    display: flex;
    align-items: center;
}
.al-eye-btn:hover { color: #6366f1; }

/* ── Remember + Forgot ───────────────────────────────────────────── */
.al-row-between { display: flex; justify-content: space-between; align-items: center; }
.al-remember {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.83rem;
    color: #6b7280;
    cursor: pointer;
}
.al-remember input[type="checkbox"] {
    accent-color: #6366f1;
    width: 14px;
    height: 14px;
}
.al-forgot {
    font-size: 0.83rem;
    color: #ef4444;
    font-weight: 600;
    text-decoration: none;
}
.al-forgot:hover { color: #dc2626; text-decoration: underline; }

/* ── Login button ────────────────────────────────────────────────── */
.al-btn {
    width: 100%;
    padding: 0.85rem 1rem;
    background: #FCCA19;
    color: #1a1a1a;
    font-size: 0.93rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 1.4rem;
    transition: filter 0.2s, transform 0.15s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(252, 202, 25, 0.40);
    animation: none;
    position: relative;
}
.al-btn .btn-text { width: 100%; text-align: center; display: inline-block; }
.al-btn .anim.spin { position: absolute; right: 1.25rem; }
.al-btn:hover { filter: brightness(1.07); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(252, 202, 25, 0.55); }
.al-btn:active { transform: translateY(0); }

/* ── Alerts ──────────────────────────────────────────────────────── */
.al-notifications .alert {
    border-radius: 8px;
    font-size: 0.86rem;
    padding: 0.6rem 0.9rem;
}
.al-notifications .alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}
.al-notifications .alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
}

.al-footer-text {
    text-align: center;
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 1.25rem;
}
.al-footer-text a { color: #6366f1; font-weight: 600; text-decoration: none; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .al-left { display: none; }
    .al-right { padding: 1.5rem 1rem; background: #f3f4f6; }
}
@media (max-width: 480px) {
    .al-right__form-wrap { padding: 2rem 1.5rem; border-radius: 12px; }
    .al-right__title { font-size: 1.4rem; }
}
