:root {
    --auth-bg: #faf6f6;
    --auth-panel: #ffffff;
    --auth-panel-strong: #ffffff;
    --auth-line: rgba(227, 27, 32, 0.14);
    --auth-text: #1a1a1a;
    --auth-muted: #6b6161;
    --auth-accent: #e31b20;
    --auth-accent-2: #ff5c5c;
    --auth-danger: #dc2626;
    --auth-success: #059669;
    --auth-shadow: 0 24px 60px rgba(227, 27, 32, 0.12);
}

* {
    box-sizing: border-box;
}

body.sl-auth-body {
    margin: 0;
    min-height: 100vh;
    font-family: "Cairo", sans-serif;
    color: var(--auth-text);
    background:
        radial-gradient(circle at top left, rgba(227, 27, 32, 0.12), transparent 34%),
        radial-gradient(circle at bottom right, rgba(227, 27, 32, 0.06), transparent 36%),
        linear-gradient(180deg, #ffffff 0%, #faf6f6 100%);
}

.sl-auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 20px;
}

.sl-auth-shell {
    width: min(1180px, 100%);
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    background: #ffffff;
    border: 1px solid var(--auth-line);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--auth-shadow);
}

.sl-auth-showcase {
    position: relative;
    padding: 48px;
    background:
        linear-gradient(160deg, rgba(227, 27, 32, 0.1), transparent 40%),
        linear-gradient(180deg, #fff5f5 0%, #ffffff 100%);
}

.sl-auth-showcase::before,
.sl-auth-showcase::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(10px);
}

.sl-auth-showcase::before {
    width: 220px;
    height: 220px;
    top: -70px;
    right: -40px;
    background: rgba(227, 27, 32, 0.18);
}

.sl-auth-showcase::after {
    width: 170px;
    height: 170px;
    bottom: -60px;
    left: -40px;
    background: rgba(227, 27, 32, 0.1);
}

.sl-auth-brand {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 34px;
}

.sl-auth-mark {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #0a0a0a;
    color: #fff;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.sl-auth-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sl-auth-brand-copy small {
    display: block;
    color: var(--auth-muted);
    font-size: 0.88rem;
}

.sl-auth-brand-copy strong {
    display: block;
    font-size: 1.2rem;
    color: var(--auth-text);
}

.sl-auth-showcase-content {
    position: relative;
    z-index: 1;
    max-width: 520px;
}

.sl-auth-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(227, 27, 32, 0.1);
    color: var(--auth-accent);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.sl-auth-showcase-content h1 {
    margin: 0 0 14px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    color: #111;
}

.sl-auth-showcase-content p {
    margin: 0 0 28px;
    color: var(--auth-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.sl-auth-feature-list {
    display: grid;
    gap: 14px;
}

.sl-auth-feature {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(227, 27, 32, 0.12);
}

.sl-auth-feature i {
    color: var(--auth-accent);
    margin-top: 4px;
}

.sl-auth-feature strong {
    display: block;
    margin-bottom: 2px;
    color: #111;
}

.sl-auth-feature span {
    color: var(--auth-muted);
    font-size: 0.92rem;
}

.sl-auth-form-panel {
    padding: 48px 42px;
    background: #ffffff;
    border-right: 1px solid rgba(227, 27, 32, 0.08);
}

.sl-auth-form-top {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 28px;
}

.sl-auth-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(227, 27, 32, 0.1);
    color: var(--auth-accent);
    font-size: 0.86rem;
    font-weight: 700;
}

.sl-auth-form-box h2 {
    margin: 0 0 8px;
    font-size: 2rem;
    color: #111;
}

.sl-auth-form-box > p {
    margin: 0 0 28px;
    color: var(--auth-muted);
}

.sl-auth-alert {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 18px;
    border-radius: 14px;
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.2);
    color: #b91c1c;
}

.sl-auth-alert p {
    margin: 0;
}

.sl-auth-form {
    display: grid;
    gap: 16px;
}

.sl-auth-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #2a2222;
}

.sl-auth-input,
.sl-auth-password {
    width: 100%;
    border: 1px solid rgba(227, 27, 32, 0.18);
    background: #fff;
    color: #111;
    border-radius: 14px;
    padding: 14px 16px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.sl-auth-input:focus,
.sl-auth-password:focus-within,
.sl-auth-password:focus {
    border-color: rgba(227, 27, 32, 0.6);
    box-shadow: 0 0 0 4px rgba(227, 27, 32, 0.13);
}

.sl-auth-password {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-inline-end: 8px;
}

.sl-auth-password input {
    flex: 1;
    border: 0;
    outline: none;
    background: transparent;
    color: inherit;
    padding: 0;
}

.sl-auth-password button {
    border: 0;
    background: transparent;
    color: var(--auth-muted);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
}

.sl-auth-password button:hover {
    color: var(--auth-accent);
    background: rgba(227, 27, 32, 0.08);
}

.sl-auth-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.sl-auth-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--auth-muted);
    font-size: 0.95rem;
}

.sl-auth-link {
    color: var(--auth-accent);
    text-decoration: none;
    font-weight: 700;
}

.sl-auth-link:hover {
    color: #b91418;
}

.sl-auth-submit {
    width: 100%;
    border: 0;
    border-radius: 14px;
    padding: 15px 18px;
    background: linear-gradient(135deg, #e31b20, #ff5c5c);
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 18px 40px rgba(227, 27, 32, 0.24);
}

.sl-auth-submit:hover {
    box-shadow: 0 22px 48px rgba(227, 27, 32, 0.32);
    transform: translateY(-1px);
}

@media (max-width: 980px) {
    .sl-auth-shell {
        grid-template-columns: 1fr;
    }

    .sl-auth-showcase {
        display: none;
    }

    .sl-auth-form-panel {
        border-right: 0;
        padding: 36px 24px;
    }
}

/* Focused single-panel sign in */
.sl-auth-shell--single {
    display: block;
    width: min(520px, 100%);
    border-radius: 26px;
}

.sl-auth-shell--single .sl-auth-form-panel {
    border-right: 0;
    padding: 42px clamp(24px, 6vw, 58px) 50px;
}

.sl-auth-logo-lockup {
    display: grid;
    justify-items: center;
    gap: 8px;
    margin: 0 auto 34px;
    text-align: center;
}

.sl-auth-logo-lockup .sl-auth-mark {
    width: 74px;
    height: 74px;
    margin-bottom: 4px;
    border-radius: 22px;
    box-shadow: 0 14px 28px rgba(227, 27, 32, .16);
}

.sl-auth-logo-lockup strong {
    color: #111;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.35rem;
    letter-spacing: .16em;
}

.sl-auth-logo-lockup span {
    color: var(--auth-muted);
    font-size: .68rem;
    letter-spacing: .2em;
}

.sl-auth-shell--single .sl-auth-form-top { display: none; }
.sl-auth-shell--single .sl-auth-form-box h2 { margin-top: 16px; }

.sl-auth-shell--single {
    direction: ltr;
    text-align: left;
}

.sl-auth-shell--single .sl-auth-form-panel,
.sl-auth-shell--single .sl-auth-form-box {
    direction: ltr;
    text-align: left;
}

.sl-auth-shell--single .sl-auth-form-box > p {
    text-align: left;
}

.sl-auth-shell--single .sl-auth-field label {
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
}

.sl-auth-shell--single .sl-auth-field label i {
    order: -1;
    color: var(--auth-accent);
    font-size: .9em;
}

.sl-auth-input-wrap {
    position: relative;
    width: 100%;
}

.sl-auth-input-wrap .sl-auth-input {
    display: block;
    padding-right: 52px;
    text-align: left;
    direction: ltr;
}

.sl-auth-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--auth-muted);
    transform: translateY(-50%);
    cursor: pointer;
}

.sl-auth-toggle:hover {
    color: var(--auth-accent);
    background: rgba(227, 27, 32, .08);
}

.sl-auth-shell--single .sl-auth-meta {
    direction: ltr;
}

.sl-auth-shell--single .sl-auth-check {
    flex-direction: row;
}

.sl-auth-shell--single .sl-auth-submit {
    direction: ltr;
}
.sl-auth-shell--single .sl-auth-meta { justify-content: flex-end; }
