/* Shahna Star — sign-in experience (company site + platform). Brand: deep navy + star gold. */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&display=swap');

:root {
    --sh-navy-950: #071a2f;
    --sh-navy-900: #0b2545;
    --sh-navy-700: #17375e;
    --sh-navy-500: #2a5a93;
    --sh-gold-500: #e9a82b;
    --sh-gold-400: #f3c056;
    --sh-ink: #0f1b2d;
    --sh-muted: #5b6b82;
    --sh-line: #e3e9f2;
    --sh-surface: #f5f8fc;
    --sh-danger: #d92d20;
}

.dashboard-main-wrapper { padding-top: 0 !important; }
body { margin: 0; background: #fff; color: var(--sh-ink); }
html[dir="rtl"] body, html[dir="rtl"] .auth-wrapper,
html[dir="ltr"] body, html[dir="ltr"] .auth-wrapper,
*, *::before, *::after, button, input, select, textarea, .btn, label { font-family: 'Cairo', sans-serif !important; }

.auth-wrapper { display: flex; min-height: 100vh; width: 100%; }

/* ---------- form side ---------- */
.auth-left {
    flex: 1; display: flex; justify-content: center; align-items: center;
    padding: 2.5rem 1.5rem; background: #fff; position: relative;
}
.auth-form-container { width: 100%; max-width: 420px; }
.auth-header { margin-bottom: 2rem; text-align: start; }
.brand-logo { display: inline-flex; align-items: center; margin-bottom: 1.75rem; }
.brand-logo img { height: 56px; width: auto; max-width: 220px; object-fit: contain; }
.auth-header h1 { font-size: 2rem; font-weight: 700; color: var(--sh-navy-900); margin: 0 0 .5rem; letter-spacing: -.01em; }
.auth-header p { color: var(--sh-muted); font-size: 1rem; margin: 0; line-height: 1.7; }

.form-group { margin-bottom: 1.15rem; }
.form-group label { display: block; font-weight: 600; font-size: .9rem; color: var(--sh-navy-900); margin-bottom: .45rem; }
.form-control {
    width: 100%; height: 50px; padding: 0 1rem; border: 1.5px solid var(--sh-line); border-radius: 12px;
    background: var(--sh-surface); font-size: .98rem; color: var(--sh-ink);
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.form-control::placeholder { color: #98a6bb; }
.form-control:hover { border-color: #cfd9e8; }
.form-control:focus { outline: 0; background: #fff; border-color: var(--sh-navy-500); box-shadow: 0 0 0 4px rgba(42, 90, 147, .14); }
.form-control.is-invalid { border-color: var(--sh-danger); background: #fff6f5; }
.invalid-feedback { display: block; color: var(--sh-danger); font-size: .85rem; margin-top: .35rem; }

.form-actions { display: flex; align-items: center; justify-content: space-between; margin: .25rem 0 1.5rem; gap: 1rem; }
.custom-checkbox { display: inline-flex; align-items: center; gap: .55rem; cursor: pointer; margin: 0; position: relative; user-select: none; }
.custom-checkbox input { position: absolute; opacity: 0; width: 0; height: 0; }
.custom-checkbox .checkmark {
    width: 20px; height: 20px; border: 1.5px solid #c3cee0; border-radius: 6px; background: #fff; display: inline-block; position: relative;
    transition: all .15s ease;
}
.custom-checkbox input:checked ~ .checkmark { background: var(--sh-navy-700); border-color: var(--sh-navy-700); }
.custom-checkbox input:checked ~ .checkmark::after {
    content: ''; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.custom-checkbox .text { font-size: .9rem; color: var(--sh-muted); }
.forgot-link { font-size: .9rem; font-weight: 600; color: var(--sh-navy-500); text-decoration: none; }
.forgot-link:hover { color: var(--sh-navy-900); text-decoration: underline; }

.btn-submit {
    width: 100%; height: 52px; border: 0; border-radius: 12px; cursor: pointer; font-weight: 700; font-size: 1rem; color: #fff;
    background: linear-gradient(135deg, var(--sh-navy-700), var(--sh-navy-900));
    box-shadow: 0 10px 24px rgba(11, 37, 69, .28);
    transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.btn-submit:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(11, 37, 69, .34); filter: brightness(1.05); }
.btn-submit:active { transform: translateY(0); }
.btn-submit:focus-visible { outline: 3px solid var(--sh-gold-400); outline-offset: 2px; }

.demo-divider { display: flex; align-items: center; gap: .75rem; margin: 1.5rem 0 1rem; color: #8b99ae; font-size: .8rem; }
.demo-divider::before, .demo-divider::after { content: ''; flex: 1; height: 1px; background: var(--sh-line); }
.social-buttons, .demo-buttons { display: grid; gap: .6rem; }
.demo-buttons { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.btn-social, .btn-demo {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem; height: 44px; border-radius: 10px;
    border: 1.5px solid var(--sh-line); background: #fff; color: var(--sh-navy-900); font-weight: 600; font-size: .9rem; text-decoration: none; cursor: pointer;
    transition: all .15s ease;
}
.btn-social:hover, .btn-demo:hover { border-color: var(--sh-navy-500); background: var(--sh-surface); }
.auth-footer { margin-top: 1.75rem; text-align: center; color: var(--sh-muted); font-size: .95rem; }
.auth-footer a { color: var(--sh-navy-500); font-weight: 700; text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }

/* ---------- brand panel ---------- */
.auth-right {
    flex: 1.05; display: none; position: relative; overflow: hidden; color: #fff; padding: 3rem;
    background:
        radial-gradient(900px 500px at 85% -10%, rgba(233, 168, 43, .22), transparent 60%),
        radial-gradient(700px 500px at -10% 110%, rgba(42, 90, 147, .55), transparent 60%),
        linear-gradient(160deg, var(--sh-navy-700) 0%, var(--sh-navy-900) 55%, var(--sh-navy-950) 100%);
}
@media (min-width: 992px) { .auth-right { display: flex; flex-direction: column; justify-content: center; } }
.auth-right::before { /* hexagon lattice, a nod to parcel boxes */
    content: ''; position: absolute; inset: 0; opacity: .5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='146' viewBox='0 0 84 146'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='1.2'%3E%3Cpath d='M42 2l38 22v44L42 90 4 68V24z'/%3E%3Cpath d='M42 90l38 22v34M42 90L4 112v34'/%3E%3C/g%3E%3C/svg%3E");
}
.auth-right::after { /* gold route line */
    content: ''; position: absolute; inset-inline-end: -120px; bottom: 90px; width: 640px; height: 3px; transform: rotate(-18deg);
    background: repeating-linear-gradient(90deg, var(--sh-gold-500) 0 16px, transparent 16px 30px); opacity: .55; border-radius: 3px;
}
.auth-image, .auth-image-overlay { display: none; }
.auth-hero { position: relative; z-index: 1; max-width: 520px; margin-inline: auto; }
.auth-badge {
    display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .9rem; border-radius: 999px; font-size: .85rem; font-weight: 600;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(6px);
}
.auth-badge i { color: var(--sh-gold-400); }
.auth-marketing, .auth-hero h2 { margin: 1.25rem 0 .75rem; font-size: 2.4rem; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.auth-hero h2 em { font-style: normal; color: var(--sh-gold-400); }
.auth-marketing p, .auth-hero > p { color: rgba(255, 255, 255, .78); font-size: 1.05rem; line-height: 1.8; margin: 0 0 2rem; max-width: 460px; }
.auth-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.auth-card {
    padding: 1.1rem 1.15rem; border-radius: 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
    backdrop-filter: blur(8px); box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}
.auth-card:nth-child(2) { transform: translateY(14px); }
.auth-card:nth-child(4) { transform: translateY(14px); }
.auth-card i { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; margin-bottom: .7rem;
    background: linear-gradient(135deg, var(--sh-gold-400), var(--sh-gold-500)); color: var(--sh-navy-950); font-size: 1rem; }
.auth-card b { display: block; font-size: 1rem; margin-bottom: .2rem; }
.auth-card small { color: rgba(255, 255, 255, .72); font-size: .85rem; line-height: 1.6; }

@media (max-width: 991px) {
    .auth-left { padding: 2rem 1.25rem; align-items: flex-start; }
    .auth-header h1 { font-size: 1.7rem; }
}

/* make sure global heading/paragraph colours of the old theme never dim the brand panel */
.auth-right h2, .auth-right .auth-hero h2 { color: #fff !important; }
.auth-right p { color: rgba(255, 255, 255, .8) !important; }
.auth-card b { color: #fff; }
.brand-logo img { height: 64px; border-radius: 14px; }
