/* Authentication shell: sign-in, sign-up, invitation, account setup, two-factor.
   Markup lives in resources/views/components/auth.blade.php; pages only supply the form (and, for sign-up, the step list). */

.orixs-auth {
    --orixs-auth-ink: #111827;
    --orixs-auth-muted: #6b7280;
    --orixs-auth-line: #d9dde8;
    --orixs-auth-accent: #8145f8;
    --orixs-auth-accent-dark: #6a35d9;
    display: flex;
    min-height: 100vh;
}

/* ---- Brand panel (left) ------------------------------------------------ */
.orixs-auth__brand {
    position: relative;
    flex: 0 0 46%;
    max-width: 620px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(60rem 40rem at 0% 0%, rgba(129, 69, 248, .45), transparent 60%),
        radial-gradient(40rem 30rem at 100% 100%, rgba(56, 189, 248, .18), transparent 60%),
        linear-gradient(160deg, #141733 0%, #221d63 55%, #36229a 100%);
}

.orixs-auth__brand-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100vh;
    padding: 48px 56px;
}

.orixs-auth__logo {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 10px 16px;
    border-radius: 12px;
    background-color: #fff;
    box-shadow: 0 8px 24px rgba(8, 10, 40, .25);
}

.orixs-auth__logo img {
    display: block;
    max-width: 150px;
    max-height: 36px;
    width: auto;
    height: auto;
}

.orixs-auth__hero {
    margin-block: auto;
    padding-block: 40px;
}

.orixs-auth__kicker {
    margin: 0 0 14px;
    color: #c4b5fd;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.orixs-auth__headline {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(2rem, 3.2vw, 2.9rem);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -.01em;
}

.orixs-auth__lead {
    max-width: 30rem;
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-size: 17px;
    line-height: 1.65;
}

.orixs-auth__note {
    margin: auto 0 0;
    color: rgba(255, 255, 255, .72);
    font-size: 13.5px;
}

.orixs-auth__note i {
    margin-inline-end: 6px;
    color: #a78bfa;
}

/* ---- Form panel (right) ------------------------------------------------ */
.orixs-auth__main {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 100vh;
    padding: 72px 24px 40px;
    background-color: #fff;
}

body.dark-theme .orixs-auth__main { background-color: #0f172a; }

.orixs-auth__column {
    width: 100%;
    max-width: 460px;
}

.orixs-auth__column .login_box {
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent !important;
    box-shadow: none;
    text-align: start;
}

.orixs-auth__logo--mobile { display: none; margin-bottom: 28px; background-color: transparent; box-shadow: none; padding: 0; }

.orixs-auth__lang {
    position: absolute;
    inset-block-start: 20px;
    inset-inline-end: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--orixs-auth-line);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(17, 24, 39, .06);
}

.orixs-auth__lang a {
    padding: 4px 12px;
    border-radius: 999px;
    color: #374151;
    font-size: 12.5px;
    font-weight: 500;
    text-decoration: none;
}

.orixs-auth__lang a:hover { background: #f3f0ff; }
.orixs-auth__lang a.is-current { background: var(--orixs-auth-accent); color: #fff; }

/* ---- Form styling shared by the pages ---------------------------------- */
.orixs-auth .login_box h3 {
    color: var(--orixs-auth-ink);
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -.01em;
}

.orixs-auth .orixs-auth__subtitle {
    margin: -.75rem 0 1.75rem;
    color: var(--orixs-auth-muted);
    font-size: 15px;
}

/* The legacy rule draws side rules next to every paragraph in the box. */
.orixs-auth .login_box p::before,
.orixs-auth .login_box p::after { content: none; }

.orixs-auth .login_box .form-group label {
    margin-bottom: 6px;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
}

.orixs-auth .login_box .form-control {
    border: 1px solid var(--orixs-auth-line);
    border-radius: 10px;
    background-color: #fff;
}

.orixs-auth .login_box .form-control:focus {
    border-color: var(--orixs-auth-accent);
    box-shadow: 0 0 0 3px rgba(129, 69, 248, .16);
}

.orixs-auth .login_box .input-group .form-control { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.orixs-auth .login_box .input-group .btn { border-radius: 0 10px 10px 0; }
body.rtl .orixs-auth .login_box .input-group .form-control { border-radius: 0 10px 10px 0; }
body.rtl .orixs-auth .login_box .input-group .btn { border-radius: 10px 0 0 10px; }

.orixs-auth .login_box .btn-primary,
.orixs-auth .login_box button.btn-primary {
    border: 0;
    border-radius: 10px !important;
    background: linear-gradient(135deg, var(--orixs-auth-accent), var(--orixs-auth-accent-dark));
    color: #fff;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(129, 69, 248, .28);
    transition: transform .15s ease, box-shadow .15s ease;
}

.orixs-auth .login_box .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(129, 69, 248, .34); }

.orixs-auth .login_box .btn-secondary {
    border: 1px solid var(--orixs-auth-line);
    border-radius: 10px !important;
    background: #fff;
    color: #374151;
    font-weight: 600;
}

.orixs-auth .login_box .btn-secondary:hover { background: #f8f7ff; border-color: #c4b5fd; }

.orixs-auth .login_box a.btn-primary,
.orixs-auth .login_box a.btn-secondary { display: flex; align-items: center; justify-content: center; }

/* ---- Sign-up: the step list moves into the brand panel ------------------ */
.orixs-auth__brand .onboarding-rail {
    flex: none;
    margin: auto 0;
    padding: 40px 0;
    border-radius: 0;
    background: transparent;
}

.orixs-auth__brand .onboarding-kicker { color: #c4b5fd; letter-spacing: .14em; }
.orixs-auth__brand .onboarding-title { color: #fff; font-size: 2rem; }
.orixs-auth__brand .onboarding-subtitle { color: rgba(255, 255, 255, .75); }
.orixs-auth__brand .onboarding-steplist { display: block; }
.orixs-auth__brand .onboarding-steplist li:not(:last-child)::before { background: rgba(255, 255, 255, .22); }
.orixs-auth__brand .onboarding-steplist li.is-complete:not(:last-child)::before { background: #a78bfa; }
.orixs-auth__brand .onboarding-step-num { border-color: rgba(255, 255, 255, .35); background: transparent; color: rgba(255, 255, 255, .8); }
.orixs-auth__brand .onboarding-steplist li.is-active .onboarding-step-num,
.orixs-auth__brand .onboarding-steplist li.is-complete .onboarding-step-num { border-color: #fff; background: #fff; color: #36229a; }
.orixs-auth__brand .onboarding-steplist li.is-active .onboarding-step-num { box-shadow: 0 0 0 4px rgba(255, 255, 255, .18); }
.orixs-auth__brand .onboarding-step-name { color: rgba(255, 255, 255, .7); }
.orixs-auth__brand .onboarding-steplist li.is-active .onboarding-step-name,
.orixs-auth__brand .onboarding-steplist li.is-complete .onboarding-step-name { color: #fff; }
.orixs-auth__brand .onboarding-step-desc { color: rgba(255, 255, 255, .55); }

/* The sign-up form needs a wider column than sign-in. */
.orixs-auth__main:has(#company-onboarding) { align-items: flex-start; padding-top: 88px; }
.orixs-auth__main .orixs-auth__column:has(#company-onboarding) { max-width: 680px; }
.orixs-auth__main .login_box:has(#company-onboarding),
.orixs-auth__main .login_box.login_box--onboarding { width: 100%; padding: 0; }
.orixs-auth__main .onboarding-layout { display: block; min-height: 0; padding: 0; }
.orixs-auth__main .onboarding-main { padding: 0; }
.orixs-auth__main .onboarding-progress span { background: #e5e7eb; }
.orixs-auth__main .onboarding-progress span.active { background: var(--orixs-auth-accent); }
.orixs-auth__main .onboarding-head { margin-bottom: 20px; }

@media (min-width: 992px) {
    .orixs-auth__main .onboarding-head { display: none; }
    .orixs-auth__main .onboarding-progress { display: grid; margin-bottom: 28px; }
}

/* ---- Phones and tablets: single column --------------------------------- */
@media (max-width: 991.98px) {
    .orixs-auth { display: block; }
    .orixs-auth__brand { display: none; }
    .orixs-auth__main { align-items: flex-start; padding: 64px 20px 32px; }
    .orixs-auth__logo--mobile { display: inline-flex; }
    .orixs-auth__lang { inset-inline-end: 16px; inset-block-start: 14px; }
}

@media (max-width: 575.98px) {
    .orixs-auth__main { padding-inline: 16px; }
}

/* Links inside sign-up copy are inline text, not the full-width bordered boxes the legacy .login_box a rule makes of them. */
.orixs-auth .login_box .onboarding-login-link a {
    display: inline;
    width: auto;
    padding: 0;
    border: 0;
    font-size: inherit;
}
.orixs-auth .login_box .onboarding-login-link { margin-top: 14px; font-size: 13.5px; }
.orixs-auth .login_box #location-data-sources,
.orixs-auth .login_box #location-attribution { font-size: 12px; opacity: .8; }
.orixs-auth .onboarding-actions #onboarding-next { margin-inline-start: auto; }
