/* Orun authentication surfaces */
.orun-auth-page {
    background: #f4f4f3;
}

.orun-auth-page .arrow-round,
.orun-auth-page .orun-footer {
    display: none !important;
}

.orun-auth-shell {
    min-height: 100svh;
    padding: 108px 24px 24px;
    color: #171719;
    background: #f4f4f3;
}

.orun-auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
    gap: 16px;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    align-items: start;
}

.orun-auth-form-pane,
.orun-auth-context {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #d8d8da;
    border-radius: 0.85rem;
}

.orun-auth-form-pane {
    min-height: calc(100svh - 132px);
}

.orun-auth-form-frame {
    width: 100%;
    max-width: 590px;
    margin: 0 auto;
    padding: clamp(3rem, 5vw, 5.5rem) clamp(2rem, 4.4vw, 4.5rem) 2.5rem;
}

.orun-auth-back {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: clamp(2.75rem, 5vw, 4.75rem);
    color: #55555a;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.orun-auth-back span {
    color: #111111;
    font-size: 1rem;
}

.orun-auth-back:hover {
    color: #111111;
}

.orun-auth-card__header {
    margin-bottom: 2rem;
}

.orun-auth-card__eyebrow,
.orun-auth-context__eyebrow {
    margin: 0 0 1rem;
    color: #646468;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.orun-auth-card__header h1 {
    margin: 0;
    color: #111111;
    font-size: clamp(2.5rem, 3.25vw, 3.55rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.orun-auth-card__header > p:last-child {
    max-width: 520px;
    margin: 1rem 0 0;
    color: #646468;
    font-size: 0.97rem;
    font-weight: 500;
    line-height: 1.55;
}

.orun-auth-card__content .form-label {
    margin-bottom: 0.45rem;
    color: #242427 !important;
    font-size: 0.83rem !important;
    font-weight: 700 !important;
}

.orun-auth-card__content .form-control {
    min-height: 52px;
    padding: 0.8rem 0.95rem;
    color: #171719;
    background: #ffffff;
    border: 1px solid #cfcfd2;
    border-radius: 0.4rem;
    box-shadow: none;
    font-family: var(--orun-font);
    font-size: 0.94rem;
    font-weight: 500;
}

.orun-auth-card__content textarea.form-control {
    min-height: 94px;
    line-height: 1.5;
    resize: vertical;
}

.orun-auth-card__content .form-control::placeholder {
    color: #929296;
    opacity: 1;
}

.orun-auth-card__content .form-control:focus {
    color: #171719;
    background: #ffffff;
    border-color: #171719;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(23, 23, 25, 0.08);
}

.orun-auth-card__content .form-control[readonly] {
    color: #343438;
    background: #f4f4f3;
}

.orun-auth-card__content .form-check {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 24px;
    margin: 0;
    padding-left: 0;
}

.orun-auth-card__content .form-check-input {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin: 0;
    background-color: #ffffff;
    border: 1px solid #a9a9ad;
    border-radius: 0.25rem;
    box-shadow: none;
}

.orun-auth-card__content .form-check-input:checked {
    background-color: #111111;
    border-color: #111111;
}

.orun-auth-card__content .form-check-input:focus {
    border-color: #111111;
    box-shadow: 0 0 0 3px rgba(23, 23, 25, 0.08);
}

.orun-auth-card__content .form-check-label,
.orun-auth-card__content .text-gray-700 {
    color: #6a6a6f !important;
}

.orun-auth-card__content .text-danger {
    color: #b42318 !important;
    font-weight: 500;
}

.orun-auth-card__content a:not(.btn),
.orun-auth-card__foot a {
    color: #171719 !important;
    font-weight: 700;
    text-decoration-color: #9a9a9e;
    text-underline-offset: 0.2em;
}

.orun-auth-card__content .btn {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.4rem !important;
    font-size: 0.93rem;
    font-weight: 700 !important;
    text-decoration: none;
}

.orun-auth-card__content .btn.bg-deepyellow {
    color: #ffffff !important;
    background: #111111 !important;
    border: 1px solid #111111 !important;
}

.orun-auth-card__content .btn.bg-white {
    color: #171719 !important;
    background: #ffffff !important;
    border: 1px solid #cfcfd2 !important;
}

.orun-auth-card__content .btn:not(.w-100) {
    min-height: 42px;
}

.orun-auth-card .alert {
    margin-bottom: 1.25rem;
    padding: 0.9rem 1rem;
    color: #343438;
    background: #f4f4f3;
    border: 1px solid #d8d8da;
    border-radius: 0.4rem !important;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.5;
}

.orun-auth-card__content + .orun-auth-card__foot,
.orun-auth-card__foot {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    color: #6a6a6f;
    border-top: 1px solid #e0e0e1;
    font-size: 0.88rem;
    font-weight: 500;
    text-align: left;
}

.orun-auth-password {
    position: relative;
}

.orun-auth-password .form-control {
    padding-right: 4.25rem;
}

.orun-auth-password__toggle {
    position: absolute;
    top: 50%;
    right: 0.7rem;
    min-height: 32px;
    padding: 0.25rem 0.4rem;
    color: #55555a;
    background: transparent;
    border: 0;
    border-radius: 0.25rem;
    transform: translateY(-50%);
    font-family: var(--orun-font);
    font-size: 0.76rem;
    font-weight: 700;
}

.orun-auth-password__toggle:hover {
    color: #111111;
    background: #f0f0ef;
}

.orun-auth-password__toggle:focus-visible {
    outline: 2px solid #111111;
    outline-offset: 2px;
}

.orun-auth-card__content ul.list-style-disc {
    display: grid;
    gap: 0.55rem;
    padding-left: 1.15rem;
}

.orun-auth-card__content ul.list-style-disc li {
    list-style: disc;
}

.orun-auth-card__content #recovery-codes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    padding: 0;
}

.orun-auth-card__content #recovery-codes li {
    width: auto;
    padding: 0;
    list-style: none;
}

.orun-auth-card__content #recovery-codes code {
    padding: 0.7rem 0.8rem !important;
    color: #242427 !important;
    background: #f4f4f3 !important;
    border: 1px solid #d8d8da !important;
    border-radius: 0.35rem !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.83rem !important;
    text-align: center;
}

.orun-auth-card__content code.text-deepyellow {
    color: #242427 !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.orun-auth-meta,
.orun-auth-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 1rem;
    margin-top: 1.25rem;
    color: #7b7b80;
    font-size: 0.72rem;
    font-weight: 500;
}

.orun-auth-meta span {
    position: relative;
}

.orun-auth-meta span:not(:last-child)::after {
    position: absolute;
    top: 0.45em;
    right: -0.58rem;
    width: 3px;
    height: 3px;
    content: "";
    background: #a9a9ad;
    border-radius: 50%;
}

.orun-auth-legal {
    margin-top: 0.55rem;
}

.orun-auth-legal a {
    color: #646468;
    text-underline-offset: 0.15em;
}

.orun-auth-context {
    position: sticky;
    top: 108px;
    display: grid;
    grid-template-rows: 52px minmax(280px, 0.9fr) minmax(330px, 1.1fr);
    min-height: calc(100svh - 132px);
    max-height: 920px;
    background: #f0f1f3;
}

.orun-auth-context__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 1.25rem;
    color: #55555a;
    background: #ffffff;
    border-bottom: 1px solid #d8d8da;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.orun-auth-context__status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.orun-auth-context__status i {
    width: 7px;
    height: 7px;
    background: #1f7a48;
    border-radius: 50%;
}

.orun-auth-context__visual {
    min-height: 0;
    padding: 1.25rem;
    overflow: hidden;
    background: #eef0f2;
    border-bottom: 1px solid #d8d8da;
}

.orun-auth-context__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background: #ffffff;
    border: 1px solid #d2d4d7;
    border-radius: 0.55rem;
}

.orun-auth-context__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
    padding: clamp(2.25rem, 4vw, 4.25rem);
    background: #ffffff;
}

.orun-auth-context__copy h2 {
    max-width: 620px;
    margin: 0;
    color: #111111;
    font-size: clamp(2.2rem, 3vw, 3.25rem);
    font-weight: 700;
    line-height: 1.03;
    letter-spacing: -0.05em;
}

.orun-auth-context__copy > p:not(.orun-auth-context__eyebrow) {
    max-width: 590px;
    margin: 1.1rem 0 0;
    color: #646468;
    font-size: 0.94rem;
    line-height: 1.6;
}

.orun-auth-context__copy ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: auto 0 0;
    padding: 2rem 0 0;
    list-style: none;
}

.orun-auth-context__copy li {
    padding: 0.75rem 1rem 0 0;
    color: #343438;
    border-top: 1px solid #cfcfd2;
    font-size: 0.73rem;
    font-weight: 700;
    line-height: 1.4;
}

body.dark-theme.orun-auth-page,
body.dark-theme .orun-auth-shell {
    color: #f0f0f0;
    background: #0e0e0f;
}

body.dark-theme .orun-auth-form-pane,
body.dark-theme .orun-auth-context,
body.dark-theme .orun-auth-context__bar,
body.dark-theme .orun-auth-context__copy {
    background: #151517;
    border-color: #38383c;
}

body.dark-theme .orun-auth-back,
body.dark-theme .orun-auth-card__header > p:last-child,
body.dark-theme .orun-auth-card__eyebrow,
body.dark-theme .orun-auth-context__eyebrow,
body.dark-theme .orun-auth-context__copy > p:not(.orun-auth-context__eyebrow),
body.dark-theme .orun-auth-meta,
body.dark-theme .orun-auth-legal a {
    color: #b8b8bc;
}

body.dark-theme .orun-auth-back span,
body.dark-theme .orun-auth-back:hover,
body.dark-theme .orun-auth-card__header h1,
body.dark-theme .orun-auth-context__copy h2 {
    color: #ffffff;
}

body.dark-theme .orun-auth-card__content .form-label {
    color: #f0f0f0 !important;
}

body.dark-theme .orun-auth-card__content .form-control,
body.dark-theme .orun-auth-card__content .form-control:focus,
body.dark-theme .orun-auth-card__content .form-control[readonly] {
    color: #f0f0f0;
    background: #0e0e0f !important;
    border-color: #444448 !important;
}

body.dark-theme .orun-auth-card__content .form-control:focus {
    border-color: #dddddf !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

body.dark-theme .orun-auth-card__content .form-check-input {
    background-color: #0e0e0f;
    border-color: #67676c;
}

body.dark-theme .orun-auth-card__content .form-check-input:checked {
    background-color: #111111;
    border-color: #ffffff;
}

body.dark-theme .orun-auth-card__content .form-check-label,
body.dark-theme .orun-auth-card__content .text-gray-700,
body.dark-theme .orun-auth-card__foot {
    color: #b8b8bc !important;
}

body.dark-theme .orun-auth-card__content a:not(.btn),
body.dark-theme .orun-auth-card__foot a {
    color: #ffffff !important;
}

body.dark-theme .orun-auth-card__content .btn.bg-deepyellow {
    color: #111111 !important;
    background: #ffffff !important;
    border-color: #ffffff !important;
}

body.dark-theme .orun-auth-card__content .btn.bg-white {
    color: #ffffff !important;
    background: transparent !important;
    border-color: #4a4a4f !important;
}

body.dark-theme .orun-auth-card .alert,
body.dark-theme .orun-auth-card__content #recovery-codes code {
    color: #dddddf !important;
    background: #1d1d20 !important;
    border-color: #444448 !important;
}

body.dark-theme .orun-auth-card__foot,
body.dark-theme .orun-auth-context__bar,
body.dark-theme .orun-auth-context__visual,
body.dark-theme .orun-auth-context__copy li {
    border-color: #38383c;
}

body.dark-theme .orun-auth-password__toggle {
    color: #b8b8bc;
}

body.dark-theme .orun-auth-password__toggle:hover {
    color: #ffffff;
    background: #29292c;
}

body.dark-theme .orun-auth-context__bar {
    color: #b8b8bc;
}

body.dark-theme .orun-auth-context__visual {
    background: #101012;
}

body.dark-theme .orun-auth-context__visual img {
    border-color: #38383c;
}

body.dark-theme .orun-auth-context__copy li {
    color: #dddddf;
}

@media (max-width: 1199.98px) {
    .orun-auth-layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
    }

    .orun-auth-context__copy ul {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .orun-auth-context__copy li {
        padding-top: 0.6rem;
    }
}

@media (max-width: 991.98px) {
    .orun-auth-shell {
        padding-top: 88px;
    }

    .orun-auth-layout {
        grid-template-columns: 1fr;
        max-width: 720px;
    }

    .orun-auth-form-pane {
        min-height: 0;
    }

    .orun-auth-context {
        position: static;
        display: block;
        min-height: 0;
        max-height: none;
    }

    .orun-auth-context__bar,
    .orun-auth-context__visual {
        display: none;
    }

    .orun-auth-context__copy {
        padding: 2rem;
    }

    .orun-auth-context__copy h2 {
        max-width: 560px;
        font-size: 2.25rem;
    }

    .orun-auth-context__copy ul {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0;
        margin-top: 2rem;
    }
}

@media (max-width: 575.98px) {
    .orun-auth-shell {
        padding: 74px 0 0;
    }

    .orun-auth-layout {
        gap: 0;
    }

    .orun-auth-form-pane,
    .orun-auth-context {
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    .orun-auth-form-frame {
        padding: 2.5rem 1.25rem 2rem;
    }

    .orun-auth-back {
        margin-bottom: 2.75rem;
    }

    .orun-auth-card__header h1 {
        font-size: 2.45rem;
    }

    .orun-auth-card__content .d-flex.flex-wrap.align-items-center.justify-content-between {
        align-items: flex-start !important;
        flex-direction: column;
    }

    .orun-auth-card__content #recovery-codes {
        grid-template-columns: 1fr;
    }

    .orun-auth-meta {
        flex-direction: column;
        gap: 0.3rem;
    }

    .orun-auth-meta span::after {
        display: none;
    }

    .orun-auth-context__copy {
        padding: 2.5rem 1.25rem;
    }

    .orun-auth-context__copy h2 {
        font-size: 2rem;
    }

    .orun-auth-context__copy ul {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
}
