/* One layout for Partner, Driver and User authentication. */
html { -webkit-text-size-adjust: 100%; }
body.sc-auth-body {
    --auth-yellow: #ffca00;
    --auth-ink: #131519;
    margin: 0;
    color: var(--auth-ink);
    background: #1b1c1f;
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: normal;
    text-transform: none;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
.sc-auth-body *, .sc-auth-body *::before, .sc-auth-body *::after { box-sizing: border-box; }
.sc-auth-page {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    padding: 16px;
    overflow: clip;
    background: radial-gradient(circle at 35% 15%, #ffffff06, transparent 35%), linear-gradient(110deg, #17181a, #27282b 50%, #17181a);
}
.sc-auth-page::before, .sc-auth-page::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 620px;
    height: 170px;
    background: linear-gradient(180deg, #ffcc00 0 45%, #dfad00 46% 58%, #ffca00 59%);
    transform: rotate(-45deg);
    pointer-events: none;
}
.sc-auth-page::before { right: -190px; top: 130px; }
.sc-auth-page::after { left: -230px; bottom: 70px; }
.sc-auth-background { position: absolute; inset: 0; z-index: -1; background: linear-gradient(135deg, transparent 30%, #0000000d 30% 32%, transparent 32% 76%, #00000012 76%); pointer-events: none; }
.sc-auth-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 390px;
    max-width: 100%;
    height: auto;
    min-height: 0;
    padding: 22px 22px 14px;
    border: 1px solid #ffe680;
    border-radius: 24px;
    background: linear-gradient(145deg, #ffda32, #ffca00 55%, #ffc400);
    box-shadow: 0 22px 56px #0005, inset 0 1px 0 #ffffff60;
    overflow: visible;
}
.sc-auth-card :is(h1, p, label, input, button, a, div) { font-family: inherit; text-transform: none; letter-spacing: normal; }
.sc-auth-body .sc-auth-card span { font-family: inherit; text-transform: inherit; letter-spacing: inherit; }
.sc-auth-header { flex: 0 0 auto; text-align: center; }
.sc-auth-logo { display: block; width: 112px; height: 112px; margin: 0 auto 10px; object-fit: contain; }
.sc-auth-header .sc-auth-title { margin: 0; padding: 0; color: #111; font-size: 20px; font-weight: 700; line-height: 26px; text-transform: uppercase; }
.sc-auth-header .sc-auth-subtitle { margin: 4px 0 0; color: #3e350e; font-size: 12px; font-weight: 400; line-height: 19px; }
.sc-auth-subtitle strong { color: #111; font-weight: 600; }
.sc-auth-form {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    min-width: 0;
    margin: 16px 0 0;
    padding: 0;
    overflow: visible;
}
.sc-auth-form > * { flex-shrink: 0; }
.sc-auth-divider { order: 10; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 22px; margin: 0 0 12px; font-size: 12px; line-height: 18px; font-weight: 600; color: #161616; }
.sc-auth-divider::before, .sc-auth-divider::after { content: ""; flex: 1; height: 1px; background: #2225; }
.sc-auth-email { order: 20; }
.sc-auth-field { position: relative; display: flex; align-items: center; width: 100%; height: 48px; border: 1px solid #fff; border-radius: 12px; background: #f3f4f6; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.sc-auth-field:focus-within { border-color: #23252a; background: #fff; box-shadow: 0 0 0 2px #ffffff70; }
.sc-auth-field-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 28px; width: 28px; height: 28px; margin-left: 9px; border-radius: 7px; background: #ffcf00; color: #171717; }
.sc-auth-field-icon svg { width: 16px; height: 16px; }
.sc-auth-field input {
    display: block;
    flex: 1;
    width: 100%;
    min-width: 0;
    height: 46px;
    min-height: 0;
    margin: 0;
    padding: 0 12px 0 10px !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: none;
    background: transparent !important;
    box-shadow: none !important;
    color: #191c21;
    font-size: 15px;
    font-weight: 400;
    line-height: 24px;
}
.sc-auth-field input::placeholder { color: #727986; opacity: 1; font-size: inherit; }
.sc-auth-field input[readonly] { color: #565c66; }
.sc-auth-field:has(.is-invalid) { border-color: #b42318; }
.sc-auth-field input[inputmode="numeric"] { letter-spacing: 4px; font-weight: 600; }
.sc-auth-field input[inputmode="numeric"]::placeholder { letter-spacing: 0; font-weight: 400; }
.sc-auth-options { order: 30; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 24px; margin: 8px 2px 12px; color: #1d1e20; font-size: 11px; line-height: 18px; }
.sc-auth-remember, .sc-auth-secure { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: inherit; font-size: inherit; line-height: inherit; font-weight: 500; }
.sc-auth-remember { cursor: pointer; }
.sc-auth-remember input { appearance: auto; position: static; width: 14px; height: 14px; margin: 0; accent-color: #141519; opacity: 1; }
.sc-auth-secure svg { width: 15px; height: 15px; flex-shrink: 0; }
.sc-auth-feedback { order: 40; display: flow-root; min-height: 0; margin: 0; font-size: 12px; line-height: 18px; font-weight: 500; }
.sc-auth-body :where(#otpMessage, .driver-message-box, .driver-location-status, .sc-message, .sc-auth-feedback .alert) {
    margin: 0;
    min-height: 36px;
    padding: 8px 10px;
    border: 1px solid #ccd8ed;
    border-radius: 9px;
    background: #f2f6ff;
    color: #284b76;
    font-family: inherit;
    font-size: 12px;
    line-height: 18px;
    font-weight: 500;
    text-align: left;
    text-transform: none;
    overflow-wrap: anywhere;
}
.sc-auth-body :is(.msg-success, .driver-message-box.success, .driver-location-status.success, .sc-message.success, .sc-auth-feedback .alert-success) { border-color: #badfc8 !important; background: #edf9f0 !important; color: #176239 !important; }
.sc-auth-body :is(.msg-error, .driver-message-box.error, .driver-location-status.error, .sc-message.error, .sc-auth-feedback .alert-danger) { border-color: #efc3c1 !important; background: #fff0ef !important; color: #a12622 !important; }
.sc-auth-body .driver-location-status.warning { border-color: #e9d28a; background: #fff9e5; color: #775b12; }
.sc-auth-body .sc-auth-feedback :where(#otpMessage, .driver-message-box, .alert) { margin: 0 0 12px; }
.sc-auth-body .invalid-feedback, .sc-auth-body .driver-error-text { display: block; margin: 4px 0 0; color: #961f1c; font-size: 11px; line-height: 17px; text-align: left; }
.sc-auth-body .driver-error-text:empty { display: none; }
.sc-auth-body .sc-message.sc-auth-feedback { display: none; margin: 0 0 12px; }
.sc-auth-body .sc-message.sc-auth-feedback.show { display: block; }
.sc-auth-body #otpMessage, .sc-auth-body .driver-message-box { display: none; }
.sc-auth-body .driver-message-box.success, .sc-auth-body .driver-message-box.error { display: block; }
.sc-auth-body .sc-auth-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 48px;
    min-height: 48px;
    margin: 0;
    padding: 10px 38px;
    border: 1px solid #17191d;
    border-radius: 12px;
    background: linear-gradient(#24262a, #0d0e10);
    box-shadow: 0 5px 10px #0003;
    color: #fff;
    font-family: inherit;
    font-size: 12px;
    line-height: 20px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, box-shadow .15s;
}
.sc-auth-body .sc-auth-btn:hover { color: #fff; background: #26282e; }
.sc-auth-body .sc-auth-btn:disabled { opacity: .65; cursor: not-allowed; box-shadow: none; }
.sc-auth-body .sc-auth-btn:focus-visible, .sc-auth-body a:focus-visible, .sc-auth-body input[type="checkbox"]:focus-visible { outline: 3px solid #245ba5; outline-offset: 2px; }
.sc-auth-body .sc-auth-secondary { background: #ffffff26; border-color: #2525258c; color: #17191d; box-shadow: none; font-weight: 600; text-transform: none; }
.sc-auth-body .sc-auth-secondary:hover { background: #ffffff50; color: #111; }
.sc-auth-send::before { content: ""; position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); background: #ffca00; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m22 2-7 20-4-9-9-4 20-7Zm-11 11L22 2' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m22 2-7 20-4-9-9-4 20-7Zm-11 11L22 2' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.sc-auth-send.loading::before, .sc-auth-send:has(.spinner)::before { display: none; }
.sc-auth-body .spinner, .sc-auth-body .sc-button-spinner { display: inline-block; flex: 0 0 15px; width: 15px; height: 15px; margin: 0; border: 2px solid #ffffff55; border-top-color: #fff; border-radius: 50%; animation: scAuthSpin .8s linear infinite; }
.sc-auth-body .sc-button-spinner { display: none; }
.sc-auth-body .loading .sc-button-spinner { display: inline-block; }
@keyframes scAuthSpin { to { transform: rotate(360deg); } }
.sc-auth-primary { order: 60; }
.sc-auth-otp { order: 50; }
.sc-auth-body #otpBox, .sc-auth-body #submit, .sc-auth-body #refreshLocationBtn, .sc-auth-body .otp-input-step, .sc-auth-body .otp-wrap { display: none; }
.sc-auth-body .otp-input-step.active, .sc-auth-body .otp-wrap.active { display: block; }
.sc-auth-body #driverOtpForm.otp-sent #sendOtpBtn { display: none !important; }
.sc-auth-body #driverOtpForm .otp-input-step { order: 51; margin-bottom: 10px; }
.sc-auth-body #driverOtpForm .otp-wrap { order: 52; }
.sc-auth-body #sendOtpActions { order: 50; }
.sc-auth-body .driver-actions, .sc-auth-body .sc-otp-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.sc-auth-body #agency-login-form #otpBox { margin-bottom: 10px; }
.sc-auth-body #agency-login-form #submit { margin-top: 10px; }
.sc-auth-body #refreshLocationBtn { margin-top: 10px; }
.sc-auth-body .sc-otp-status { display: block; margin-top: 8px; color: #555028; font-size: 11px; line-height: 18px; text-align: center; }
.sc-auth-body .sc-otp-status.verified { color: #176239; font-weight: 600; }
.sc-auth-body .otp-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; margin-top: 10px; }
.sc-auth-body .countdown, .sc-auth-body .otp-link { font-size: 11px; line-height: 18px; color: #493e18; }
.sc-auth-body .otp-link { font-weight: 600; color: #111; text-decoration: underline; }
.sc-auth-extra { order: 70; margin-top: 12px; }
.sc-auth-or { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 10px; color: #403612; font-size: 10px; line-height: 18px; font-weight: 600; }
.sc-auth-or::before, .sc-auth-or::after { content: ""; flex: 1; height: 1px; background: #16161630; }
.sc-auth-register svg { position: absolute; left: 15px; width: 17px; height: 17px; }
.sc-auth-register .sc-auth-chevron { left: auto; right: 15px; width: 14px; height: 14px; }
.sc-auth-card .sc-auth-purpose { margin: 0; color: #554716; font-size: 11px; line-height: 18px; text-align: center; }
.sc-auth-footer { position: relative; flex: 0 0 58px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 5px; margin: 12px -22px 0; padding: 0 10px; }
.sc-auth-skyline { position: absolute; width: 100%; height: 48px; bottom: 7px; left: 0; fill: #9b7400; opacity: .16; pointer-events: none; }
.sc-auth-lock { position: relative; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; background: #111; color: #ffca00; }
.sc-auth-lock svg { width: 14px; height: 14px; }
.sc-auth-security-text { position: relative; color: #42380d; font-size: 9px; line-height: 14px; font-weight: 500; text-align: center; }
.sc-auth-body .progress-steps, .sc-auth-body #loginBtn { display: none !important; }
@media (max-width: 575px) {
    .sc-auth-card { padding-left: 18px; padding-right: 18px; }
    .sc-auth-field input { font-size: 16px; }
    .sc-auth-page::before { right: -410px; top: 40px; }
    .sc-auth-page::after { left: -430px; bottom: 70px; }
    .sc-auth-footer { margin-left: -18px; margin-right: -18px; }
}
@media (max-height: 700px) {
    .sc-auth-logo { width: 92px; height: 92px; margin-bottom: 8px; }
    .sc-auth-card { padding-top: 16px; }
    .sc-auth-form { margin-top: 12px; }
}
@media (max-height: 600px) {
    .sc-auth-logo { width: 72px; height: 72px; margin-bottom: 6px; }
    .sc-auth-form { margin-top: 10px; }
    .sc-auth-footer { flex-basis: 48px; margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    .sc-auth-body *, .sc-auth-body *::before, .sc-auth-body *::after { scroll-behavior: auto !important; transition: none !important; }
}
