@font-face {
    font-family: "Shabnam";
    src: url("../../fonts/shabnam/Shabnam-Light.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Shabnam";
    src: url("../../fonts/shabnam/Shabnam.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Shabnam";
    src: url("../../fonts/shabnam/Shabnam-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("../../fonts/vazirmatn/Vazirmatn-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("../../fonts/vazirmatn/Vazirmatn-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("../../fonts/vazirmatn/Vazirmatn-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("../../fonts/vazirmatn/Vazirmatn-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --auth-gradient: linear-gradient(135deg, #1e40af 0%, #2563eb 45%, #1d4ed8 100%);
    --auth-blue: #2563eb;
    --auth-blue-deep: #1e40af;
    --auth-blue-ink: #1d4ed8;
}

/*
 * MVC/Admin ile aynı: mobilde html 14px, masaüstünde 16px.
 * iOS Safari input/select/textarea odakta 16px altındaysa sayfayı yakınlaştırır.
 */
html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

@media (max-width: 767.98px) {
    body input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="file"]):not([type="image"]):not([type="range"]):not([type="color"]),
    body select,
    body textarea {
        font-size: 16px !important;
    }
}

body.auth-body {
    margin: 0;
    font-family: "Shabnam", Tahoma, Arial, sans-serif;
    background: #fff;
    color: #1c2834;
    overflow-x: hidden;
}

.auth-body .icon {
    width: 1.125rem;
    height: 1.125rem;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Font Awesome icons use glyphs — do not apply SVG stroke rules. */
.auth-body i.icon.fa-solid,
.auth-body i.icon.fa-regular,
.auth-body i.icon.fa-brands {
    width: auto;
    height: auto;
    fill: none;
    stroke: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    line-height: 1;
}

.auth-body .icon.icon-phone {
    width: 0.8rem;
    height: 1.05rem;
    fill: currentColor;
    stroke: none;
}

.auth-bg {
    position: relative;
    overflow: hidden;
    background: var(--auth-gradient);
    color: #fff;
}

.auth-bg::before {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    top: -120px;
    inset-inline-end: -60px;
    pointer-events: none;
}

.auth-bg::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    bottom: -50px;
    inset-inline-start: 12%;
    pointer-events: none;
}

.auth-overlay {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-brand {
    text-align: center;
    max-width: 36rem;
}

.auth-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, 0.42);
    animation: auth-float 3s ease-in-out infinite;
}

.auth-brand-mark .icon {
    width: 2rem;
    height: 2rem;
}

.auth-brand-mark i.icon.fa-solid {
    width: auto;
    height: auto;
    font-size: 2rem;
    color: #1e3a8a;
}

.auth-brand-mark img {
    display: block;
    width: 3.55rem;
    height: 3.55rem;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(15, 23, 42, 0.18));
}

.auth-brand-title {
    margin: 0 0 0.75rem;
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

.auth-brand-e {
    color: #0891b2;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.35),
        0 2px 0 rgba(8, 145, 178, 0.28),
        0 8px 18px rgba(8, 145, 178, 0.4);
}

.auth-brand-masir {
    color: #1e3a8a;
    -webkit-text-stroke: 0.5px rgba(255, 255, 255, 0.35);
    text-shadow:
        0 0 0 #1e3a8a,
        0 1px 0 rgba(255, 255, 255, 0.55),
        0 2px 0 rgba(30, 58, 138, 0.25),
        0 10px 22px rgba(15, 23, 42, 0.4);
}

.auth-brand-subtitle {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 400;
    opacity: 0.92;
}

.auth-features {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    margin-top: 3rem;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 1.05rem;
}

.auth-feature .icon {
    width: 1.4rem;
    height: 1.4rem;
}

.auth-form-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1.25rem;
    background: #fff;
    box-shadow: 10px 0 30px rgba(15, 23, 42, 0.08);
}

.auth-container {
    width: 100%;
    max-width: 25rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    display: inline-flex;
    color: var(--auth-blue);
    margin-bottom: 0.75rem;
    animation: auth-pulse 2s ease-in-out infinite;
}

.auth-logo .icon {
    width: 2.6rem;
    height: 2.6rem;
}

.auth-logo i.icon.fa-solid {
    width: auto;
    height: auto;
    font-size: 2.6rem;
}

.auth-header h1 {
    margin: 0 0 0.45rem;
    font-size: 1.85rem;
    font-weight: 700;
    color: #1e293b;
}

.auth-lead {
    margin: 0 auto 1rem;
    max-width: 22rem;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.7;
}

.auth-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--auth-blue);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.18);
}

.auth-back:hover {
    color: var(--auth-blue-deep);
    background: rgba(37, 99, 235, 0.14);
}

.auth-summary:not(:empty) {
    margin-bottom: 1rem;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    background: #fee2e2;
    color: #991b1b;
    font-size: 0.9rem;
}

.auth-summary.auth-summary--success:not(:empty) {
    background: #dcfce7;
    color: #166534;
}

.reg-form .auth-submit + .auth-summary:not(:empty) {
    margin-top: 0.85rem;
}

.auth-summary:empty,
.auth-summary ul:empty {
    display: none;
}

.auth-warning {
    margin-bottom: 1rem;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.9rem;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0.15rem 0 1.15rem;
}

.auth-remember .form-check-input {
    width: 1.15rem;
    height: 1.15rem;
    margin: 0;
    float: none;
    cursor: pointer;
    border-color: #93c5fd;
}

.auth-remember .form-check-input:checked {
    background-color: var(--auth-blue);
    border-color: var(--auth-blue);
}

.auth-remember .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.auth-remember label {
    margin: 0;
    color: #334155;
    font-weight: 600;
    cursor: pointer;
}

.auth-field {
    margin-bottom: 1.15rem;
}

.auth-field .input-group {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.auth-field .input-group:focus-within {
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.28);
    transform: translateY(-2px);
}

.auth-field .input-group-text {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 3.45rem;
    flex: 0 0 3.45rem;
    background: var(--auth-gradient);
    border: 0;
    color: #fff;
    padding: 0;
    cursor: pointer;
}

.auth-field .input-group-text .icon,
.auth-field .auth-eye .icon {
    width: 2rem;
    height: 2rem;
    stroke-width: 2;
}

.auth-field .input-group-text .icon.icon-phone {
    width: 1.35rem;
    height: 1.8rem;
    fill: currentColor;
    stroke: none;
}

.auth-field .form-control {
    border: 0;
    min-height: 3rem;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    font-size: 1rem;
}

.auth-field .form-control:focus {
    background: #fff;
    box-shadow: none;
}

.auth-field .input-ltr {
    direction: ltr;
    text-align: left;
}

.auth-eye {
    border: 0;
    background: #f8fafc;
    color: #64748b;
    padding-inline: 0.85rem;
}

.auth-eye:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.auth-error {
    display: block;
    margin-top: 0.35rem;
    color: #b91c1c;
    font-size: 0.82rem;
}

.code-stage .auth-error {
    white-space: pre-line;
}

.auth-field .input-group:has(.input-validation-error),
.auth-field .input-group:focus-within:has(.input-validation-error) {
    box-shadow: 0 0 0 1px #dc2626;
    transform: none;
}

.auth-register .auth-control.input-validation-error,
.auth-register .auth-control.input-validation-error:hover,
.auth-register .auth-control.input-validation-error:focus {
    border-color: #dc2626;
    background: #fff;
    box-shadow: none;
}

[data-login-form] .auth-submit {
    min-height: 3.55rem;
}

.auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    min-height: 3rem;
    margin-top: 0.35rem;
    border: 0;
    border-radius: 12px;
    background: var(--auth-gradient);
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-submit:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.35);
}

.auth-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.auth-foot {
    display: grid;
    gap: 0.65rem;
    margin-top: 1.5rem;
}

.auth-foot-support,
.auth-foot-home,
.auth-foot-login-btn {
    text-decoration: none;
}

.auth-foot-login {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 3.4rem;
    padding-block: 0.55rem;
    padding-inline: 1rem 0.55rem;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #f8fafc;
    color: #334155;
    font-weight: 600;
}

.auth-foot-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 2.35rem;
    padding: 0.35rem 0.9rem;
    border-radius: 10px;
    background: var(--auth-gradient);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    flex: 0 0 auto;
}

.auth-foot-login-btn:hover {
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
    color: #fff;
}

.auth-foot-login-btn.is-busy {
    pointer-events: none;
    animation: auth-submit-spring 0.55s ease;
}

.auth-foot-login-btn.is-busy .icon,
.auth-foot-login-btn.is-busy > i {
    opacity: 0;
}

.auth-foot-login-btn.is-busy::after {
    content: "";
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: auth-spin 0.7s linear infinite;
}

.auth-foot-support,
.auth-foot-home {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.9rem;
    border-radius: 14px;
    font-weight: 700;
}

.auth-foot-support {
    border: 1px solid rgba(37, 99, 235, 0.28);
    background: #fff;
    color: var(--auth-blue);
}

.auth-foot-support:hover {
    background: rgba(37, 99, 235, 0.08);
}

.auth-foot-home {
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
}

.auth-foot-home:hover {
    border-color: #cbd5e1;
    color: #1e293b;
    background: #f8fafc;
}

.auth-help {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1.75rem;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

.auth-help p {
    margin: 0 0 0.35rem;
}

.auth-help a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--auth-blue);
    font-weight: 600;
    text-decoration: none;
}

.auth-help a:hover {
    color: var(--auth-blue-deep);
}

.taul-2fa-timer-wrap {
    margin: 0 0 0.85rem;
    color: #475569;
    font-size: 0.92rem;
}

.taul-2fa-timer {
    display: inline-block;
    min-width: 3.25rem;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #0f172a;
}

#taul-retry-timer {
    min-width: 4.2rem;
    font-size: 1.45rem;
    color: #1d4ed8;
}

.taul-2fa-timer-wrap.text-danger .taul-2fa-timer {
    color: #b91c1c;
}

.auth-expired {
    margin: 0 0 0.85rem;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 0.9rem;
}

.auth-expired a {
    margin-right: 0.35rem;
    color: var(--auth-blue);
    font-weight: 700;
    text-decoration: none;
}

.auth-submit:disabled {
    opacity: 0.55;
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

.auth-submit.is-busy {
    pointer-events: none;
    animation: auth-submit-spring 0.55s ease;
}

.auth-submit.is-busy::after {
    content: "";
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: auth-spin 0.7s linear infinite;
}

.auth-submit.is-busy > .fa-arrow-left {
    display: none;
}

body.auth-soft:not(.auth-register) .auth-soft-submit > .fa-arrow-left {
    font-size: 0.95rem;
    line-height: 1;
}

@keyframes auth-submit-spring {
    0% { transform: scale(1); }
    35% { transform: scale(0.96); }
    70% { transform: scale(1.04); }
    100% { transform: scale(1); }
}

@keyframes auth-spin {
    to { transform: rotate(360deg); }
}

.auth-code {
    letter-spacing: 0.35em;
    font-weight: 700;
    font-size: 1.35rem !important;
    text-align: center !important;
}

.auth-manual {
    margin: 0 0 1rem;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--auth-blue-ink);
    text-align: center;
}

.auth-manual strong {
    display: block;
    margin-top: 0.2rem;
    letter-spacing: 0.22em;
    font-size: 1.35rem;
    direction: ltr;
}

@keyframes auth-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes auth-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@media (max-width: 991.98px) {
    .auth-form-section {
        box-shadow: none;
        padding: 1.5rem 1rem 2rem;
    }
}

.auth-register .auth-bg {
    min-height: 100vh;
}

body.auth-body.auth-register {
    background: #f8f7fc;
}

.reg-split {
    display: flex;
    min-height: 100vh;
    align-items: stretch;
}

.reg-aside {
    flex: 8 1 0;
    min-width: 0;
    display: flex;
}

.reg-aside .auth-overlay {
    flex: 1;
    width: 100%;
}

.reg-shell {
    min-height: 100vh;
    box-sizing: border-box;
    padding: 1.25rem 1rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.85rem;
}

.reg-back-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin: 0.15rem 0 0;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.reg-back-home > i {
    font-size: 0.78rem;
    opacity: 0.85;
}

.reg-back-home:hover {
    color: #1d4ed8;
    background: rgba(37, 99, 235, 0.08);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.12);
}

.reg-split .reg-shell {
    flex: 4 1 0;
    min-width: 0;
    width: auto;
}

.reg-split .reg-card {
    width: 100%;
}

@media (max-width: 991.98px) {
    .reg-aside {
        display: none;
    }

    .reg-split .reg-shell {
        flex: 1 1 auto;
        width: 100%;
    }
}

.reg-card {
    width: min(100%, 920px);
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 2px 8px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.reg-hero {
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(30, 77, 183, 0.12);
}

.reg-hero__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 45%, #1d4ed8 100%);
}

.reg-hero__bg::before,
.reg-hero__bg::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.reg-hero__bg::before {
    width: 280px;
    height: 280px;
    background: rgba(255, 255, 255, 0.06);
    top: -120px;
    inset-inline-end: -60px;
}

.reg-hero__bg::after {
    width: 160px;
    height: 160px;
    background: rgba(255, 255, 255, 0.04);
    bottom: -50px;
    inset-inline-start: 20%;
}

.reg-hero__overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 130% 90% at 50% -10%, rgba(255, 255, 255, 0.07) 0%, transparent 52%);
}

.reg-hero__content {
    position: relative;
    z-index: 1;
    padding: 1.75rem 1rem 1.35rem;
    text-align: center;
    color: #fff;
}

.reg-card:has(.type-switch) .reg-hero__content {
    padding-bottom: 2.45rem;
}

.reg-hero__status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.95rem;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.25;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.reg-hero__ico {
    display: inline-flex;
    color: #fde68a;
}

.reg-hero__ico .icon {
    width: 1.05rem;
    height: 1.05rem;
}

.reg-rail {
    position: relative;
    width: min(100%, 720px);
    margin: 0 auto;
    padding-top: 0.25rem;
}

.reg-rail__lines {
    position: absolute;
    left: 0;
    right: 0;
    top: 1.05rem;
    height: 4px;
    pointer-events: none;
}

.reg-rail__line,
.reg-rail__fill {
    position: absolute;
    top: 0;
    bottom: 0;
    border-radius: 4px;
}

.reg-rail__line {
    inset-inline: 0;
    background: rgba(255, 255, 255, 0.28);
}

.reg-rail__fill {
    right: 0;
    left: auto;
    background: linear-gradient(90deg, #fde68a 0%, #fbbf24 100%);
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.35);
}

.reg-rail__nodes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.reg-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.reg-node__dot {
    width: 2.25rem;
    height: 2.25rem;
    margin-bottom: 0.45rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.reg-node__num {
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
}

.reg-node__check {
    display: none;
    color: #fff;
}

.reg-node__check .icon {
    width: 0.95rem;
    height: 0.95rem;
}

.reg-node__label {
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.35;
}

.reg-node--pending .reg-node__dot {
    background: #fff;
    border: 3px solid rgba(255, 255, 255, 0.95);
}

.reg-node--pending .reg-node__num {
    color: #1e40af;
}

.reg-node--active .reg-node__dot {
    background: linear-gradient(145deg, #fde68a 0%, #f59e0b 100%);
    border: 3px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.reg-node--done .reg-node__num {
    display: none;
}

.reg-node--done .reg-node__check {
    display: flex;
}

.reg-node--done .reg-node__dot {
    background: linear-gradient(145deg, #fbbf24 0%, #d97706 100%);
    border: 2px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.28);
}

.reg-form {
    padding: 0.45rem 0.9rem 0.4rem;
}

.reg-card .type-switch {
    position: relative;
    z-index: 5;
    margin: -1.6rem 0 1rem;
}

.reg-step-head {
    margin: 0.35rem 0 1rem;
    text-align: center;
}

.reg-step-head h1 {
    margin: 0 0 0.3rem;
    font-size: 1.25rem;
    font-weight: 800;
}

.code-stage {
    padding: 0 0.9rem 1.15rem;
    background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 42%, #f8fafc 100%);
}

.code-saved {
    position: relative;
    margin: 0 -0.9rem 1.15rem;
    padding: 1.25rem 1rem 1rem;
    text-align: center;
}

.code-saved::after {
    content: "";
    position: absolute;
    left: 12%;
    right: 12%;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.45), transparent);
}

.code-saved__ring {
    display: flex;
    justify-content: center;
    margin-bottom: 0.85rem;
}

.code-saved__ring-inner {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2), 0 10px 28px rgba(22, 163, 74, 0.18);
    color: #16a34a;
}

.code-saved__ring-inner .icon {
    width: 1.75rem;
    height: 1.75rem;
    fill: currentColor;
    stroke: none;
}

.code-saved__title {
    margin: 0 0 0.25rem;
    font-weight: 800;
    font-size: 1.05rem;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.code-saved__lead {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
    font-weight: 400;
    color: #14532d;
}

.otp-title {
    margin: 0.2rem 0 0.35rem;
    text-align: center;
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
}

.otp-sent {
    margin: 0 0 0.9rem;
    text-align: center;
    color: #64748b;
    font-size: 0.92rem;
}

.otp-boxes {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    direction: ltr;
    margin: 0 0 0.35rem;
}

.otp-box {
    width: 2.75rem;
    height: 3.2rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    caret-color: #2563eb;
}

.otp-box:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.otp-wait {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0.85rem 0 1rem;
    padding: 0.45rem 0.85rem;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
}

.otp-wait__again {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 0;
    background: transparent;
    padding: 0;
    color: #94a3b8;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: default;
}

.otp-wait__again-ico {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.otp-wait__again:not(:disabled) {
    color: #2563eb;
    cursor: pointer;
}

.otp-wait__split {
    width: 1px;
    align-self: stretch;
    margin-block: 0.35rem;
    background: #e2e8f0;
}

.otp-wait__time {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.otp-wait__clock {
    width: 1.35rem;
    height: 1.35rem;
    fill: none;
    stroke: #64748b;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.otp-wait__ring {
    position: relative;
    width: 4.4rem;
    height: 4.4rem;
    display: grid;
    place-items: center;
}

.otp-wait__ring svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.otp-wait__track,
.otp-wait__arc {
    fill: none;
    stroke-width: 3;
}

.otp-wait__track {
    stroke: #e2e8f0;
}

.otp-wait__arc {
    stroke: #2563eb;
    stroke-linecap: round;
}

#code-timer {
    position: relative;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
    color: #0f172a;
}

.code-stage .auth-summary:not(:empty) {
    margin-top: 0.85rem;
}

#resend-code[hidden] {
    display: none !important;
}

.reg-card .auth-foot {
    margin: 0.55rem 0.9rem 1.15rem;
}

.reg-home {
    display: block;
    margin-top: 0.85rem;
    text-align: center;
    color: #1e40af;
    font-weight: 700;
    text-decoration: none;
}

.reg-home:hover {
    color: #1d4ed8;
}

.auth-register .auth-form-section {
    align-items: flex-start;
}

.auth-register .auth-field {
    min-width: 0;
}

.auth-register .auth-container {
    max-width: 42rem;
    margin-block: auto;
}

.auth-register .auth-header {
    margin-bottom: 1.35rem;
}

.auth-label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
    color: #1e40af;
    font-size: 0.92rem;
    font-weight: 600;
    text-align: right;
}

.auth-register .auth-label-ico {
    display: inline-flex;
    color: #1e40af;
}

.auth-register .auth-label-ico .icon {
    width: 1rem;
    height: 1rem;
}

.auth-register .auth-label-ico .icon.icon-phone {
    width: 0.72rem;
    height: 0.96rem;
    fill: currentColor;
    stroke: none;
}

.auth-register .auth-control {
    width: 100%;
    min-height: 3rem;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    color: #0f172a;
    font-weight: 600;
    padding: 0.65rem 0.9rem;
    box-shadow: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.auth-register .auth-control:hover {
    border-color: #94a3b8;
    background: #fff;
}

.auth-register .auth-control:focus {
    border-color: #2563eb;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
    outline: none;
}

.auth-register .auth-control.input-ltr {
    direction: ltr;
    text-align: right;
}

.auth-register .auth-control-wrap {
    position: relative;
}

.auth-register .auth-control-wrap .auth-control {
    padding-left: 2.75rem;
}

.auth-register .auth-control-wrap .auth-eye {
    position: absolute;
    top: 50%;
    left: 0.35rem;
    transform: translateY(-50%);
    border: 0;
    border-radius: 8px;
    background: transparent;
}

.auth-req {
    color: #dc2626;
    font-weight: 700;
    line-height: 1;
}

.auth-note,
.auth-help-line {
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 500;
}

.auth-help-line {
    margin: 0.35rem 0 0;
}

.auth-grid {
    display: grid;
    gap: 0.15rem 0.9rem;
    grid-template-columns: 1fr;
    grid-template-areas:
        "mobile"
        "phone"
        "email"
        "password"
        "confirm";
}

.auth-names {
    grid-template-areas: none;
}

.auth-field-national { grid-area: national; }
.auth-field-mobile { grid-area: mobile; }
.auth-field-phone { grid-area: phone; }
.auth-field-email { grid-area: email; }
.auth-field-password { grid-area: password; }
.auth-field-confirm { grid-area: confirm; }

.type-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-bottom: 1.15rem;
}

.type-option {
    position: relative;
}

.type-option input {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.type-option label {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 5.4rem;
    margin: 0;
    padding: 1.05rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    color: #1e293b;
    cursor: pointer;
    transform: translateY(0) scale(1);
    transition: border-color 0.28s ease, box-shadow 0.28s ease, transform 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.type-option label::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--auth-gradient);
    opacity: 0;
    transition: opacity 0.32s ease;
    pointer-events: none;
}

.type-option label > * {
    position: relative;
    z-index: 1;
}

.type-kicker {
    display: inline-flex;
    color: #2563eb;
    line-height: 1;
}

.type-kicker .icon {
    width: 1.35rem;
    height: 1.35rem;
}

.type-value {
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.25;
}

.type-option label:hover {
    border-color: #d1d5db;
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

.type-option input:checked + label {
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
    box-shadow: 0 3px 12px rgba(30, 64, 175, 0.24);
    transform: translateY(-2px) scale(1.015);
}

.type-option input:checked + label::before {
    opacity: 1;
}

.type-option input:checked + label .type-kicker,
.type-option input:checked + label .type-value {
    color: #fff;
}

.type-option input:focus-visible + label {
    outline: none;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.35);
}

.type-option input:checked:focus-visible + label {
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.35), 0 3px 12px rgba(30, 64, 175, 0.24);
}

form:has(#account-personal:checked) .company-only,
form:has(#account-personal:checked) .company-hint,
form:has(#account-company:checked) .personal-only,
form:has(#account-company:checked) .personal-hint {
    display: none;
}

.auth-code-label {
    margin: 0 0 0.35rem;
    color: #64748b;
    font-weight: 600;
    text-align: center;
}

.company-code {
    margin: 0 0 1rem;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--auth-blue-ink);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-align: center;
}

.auth-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    min-height: 2.8rem;
    margin-bottom: 0.4rem;
    border: 1px solid rgba(37, 99, 235, 0.28);
    border-radius: 12px;
    background: #fff;
    color: var(--auth-blue);
    font-weight: 700;
}

.auth-copy:hover {
    background: rgba(37, 99, 235, 0.08);
}

.copy-state {
    min-height: 1.25rem;
    margin: 0 0 0.8rem;
    color: #166534;
    text-align: center;
    font-size: 0.9rem;
}

.auth-meta {
    margin: 0 0 1rem;
}

.auth-meta div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    background: #f8fafc;
}

.auth-meta dt {
    color: #64748b;
    font-weight: 600;
}

.auth-meta dd {
    margin: 0;
    font-weight: 700;
}

a.auth-submit {
    text-decoration: none;
}

.auth-contact {
    grid-template-areas:
        "national"
        "phone"
        "mobile"
        "email"
        "password"
        "confirm";
}

@media (min-width: 768px) {
    .auth-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "mobile phone"
            "email email"
            "password confirm";
    }

    form:has(#account-personal:checked) .auth-contact {
        grid-template-areas:
            "national mobile"
            "email email"
            "password confirm";
    }

    form:has(#account-company:checked) .auth-contact {
        grid-template-areas:
            "mobile phone"
            "email email"
            "password confirm";
    }

    .auth-names {
        grid-template-areas: none;
        grid-template-columns: 1fr 1fr;
    }

    .auth-span-2 {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767.98px) {
    .auth-register .auth-form-section {
        padding: 1.15rem 0.85rem 1.75rem;
    }

    .auth-register .auth-container {
        max-width: none;
    }

    .auth-register .type-switch {
        gap: 0.7rem;
    }

    .auth-register .type-option label {
        min-height: 4.4rem;
        padding: 0.55rem 0.42rem;
        gap: 0.2rem;
        border-radius: 14px;
    }

    .auth-register .type-kicker .icon {
        width: 1.1rem;
        height: 1.1rem;
    }

    .auth-register .type-value {
        font-size: 0.78rem;
    }

    .auth-code {
        font-size: 16px !important;
    }

    .reg-shell {
        padding: 0.85rem 0.75rem 1.5rem;
    }

    .reg-hero__content {
        padding: 1.35rem 0.75rem 1.15rem;
    }

    .reg-card:has(.type-switch) .reg-hero__content {
        padding-bottom: 2.15rem;
    }

    .reg-rail {
        width: min(100%, 420px);
    }

    .reg-rail__lines {
        left: 8%;
        right: 8%;
    }

    .reg-node__label {
        font-size: 0.68rem;
    }
}

/* ——— Soft auth (login / register mock style) ——— */
body.auth-soft {
    --auth-soft-bg: #f7f6f2;
    --auth-soft-ink: #144532;
    --auth-soft-muted: #6b7280;
    --auth-soft-line: #e5e7eb;
    --auth-soft-card: #ffffff;
    min-height: 100vh;
    background: var(--auth-soft-bg);
    color: #1c2834;
}

body.auth-soft .auth-soft-wave {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    height: 28vh;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(120% 80% at 10% 100%, rgba(20, 69, 50, 0.08), transparent 55%),
        radial-gradient(100% 70% at 90% 110%, rgba(20, 69, 50, 0.06), transparent 50%),
        linear-gradient(180deg, transparent 0%, rgba(228, 225, 216, 0.55) 100%);
}

.auth-soft-page {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    width: min(100%, 26rem);
    margin: 0 auto;
    padding: 0.85rem 1.35rem 1.5rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.auth-soft:not(.auth-register) .auth-soft-page {
    min-height: auto;
    justify-content: flex-start;
    padding-top: 3.35rem;
}

.auth-soft-page--register {
    padding-bottom: 2.75rem;
}

.auth-soft-back {
    position: absolute;
    top: 1.1rem;
    right: 1.15rem;
    left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    color: #111827;
    text-decoration: none;
    font-size: 1.05rem;
    background: transparent;
}

.auth-soft-back:hover {
    color: var(--auth-soft-ink);
    background: rgba(20, 69, 50, 0.06);
}

.auth-soft-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 1.35rem 0 1.1rem;
}

body.auth-soft:not(.auth-register) .auth-soft-brand {
    margin: 0.55rem 0 0.55rem;
}

body.auth-soft:not(.auth-register) .auth-soft-form {
    margin-top: 1.35rem;
}

.auth-soft-logo {
    display: grid;
    place-items: center;
    width: 4.25rem;
    height: 4.25rem;
    margin-bottom: 0.55rem;
}

.auth-soft-logo img {
    width: 3.85rem;
    height: 3.85rem;
    object-fit: contain;
}

.auth-soft-lockup {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.65rem;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 0.85rem;
    color: #1e3a8a;
}

.auth-soft-lockup .auth-soft-logo {
    flex: 0 0 2.7rem;
    width: 2.7rem;
    height: 2.7rem;
    margin-bottom: 0;
    overflow: hidden;
}

.auth-soft-lockup .auth-soft-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.auth-soft-nameplate {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    text-align: start;
}

.auth-soft-name {
    color: #1e3a8a;
    font-size: 1.32rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

.auth-soft-e {
    color: #0891b2;
    text-shadow:
        0 1px 0 #fff,
        0 2px 0 rgba(8, 145, 178, 0.22),
        0 7px 14px rgba(8, 145, 178, 0.32);
}

.auth-soft-masir {
    color: #1e3a8a;
    text-shadow:
        0 1px 0 #fff,
        0 2px 0 rgba(30, 58, 138, 0.14),
        0 8px 16px rgba(30, 58, 138, 0.26);
}

.auth-soft-by {
    margin-top: 0.12rem;
    color: #64748b;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.15;
}

.auth-soft-brand h1 {
    margin: 0;
    color: var(--auth-soft-ink);
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.3;
}

.auth-soft-brand p {
    margin: 0.25rem 0 0;
    color: var(--auth-soft-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.auth-soft-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

body.auth-soft .auth-field {
    margin-bottom: 0.7rem;
}

body.auth-soft:not(.auth-register) .auth-field {
    margin-bottom: 0.6rem;
}

.auth-soft-input {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 3.05rem;
    padding: 0.3rem 0.95rem;
    border: 1px solid var(--auth-soft-line);
    border-radius: 12px;
    background: var(--auth-soft-card);
    box-shadow: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-soft-input:focus-within {
    border-color: rgba(20, 69, 50, 0.45);
    box-shadow: 0 0 0 3px rgba(20, 69, 50, 0.1);
}

.auth-soft-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    color: #9ca3af;
    font-size: 0.95rem;
    flex: 0 0 auto;
    cursor: text;
}

body.auth-soft .auth-soft-input .form-control,
body.auth-soft .auth-soft-input .auth-control {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 2.4rem;
    padding: 0.45rem 0;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 0.98rem;
    color: #111827;
}

body.auth-soft .auth-soft-input .form-control::placeholder,
body.auth-soft .auth-soft-input .auth-control::placeholder {
    color: #9ca3af;
}

body.auth-soft .auth-soft-input:has(.auth-eye) {
    position: relative;
    padding-inline-end: 2.85rem;
}

body.auth-soft .auth-soft-input .auth-eye {
    position: absolute;
    top: 50%;
    right: 0.55rem;
    left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #9ca3af;
    line-height: 1;
    transform: translateY(-50%);
}

body.auth-soft .auth-soft-input .auth-eye .auth-eye-show,
body.auth-soft .auth-soft-input .auth-eye .auth-eye-hide {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

body.auth-soft .auth-soft-input .auth-eye i {
    display: block;
    line-height: 1;
    font-size: 1.05em;
}

body.auth-soft .auth-soft-input .auth-eye:hover {
    background: #f3f4f6;
    color: #374151;
}

body.auth-soft .auth-soft-input:has(.input-validation-error),
body.auth-soft .auth-soft-input:focus-within:has(.input-validation-error) {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
    transform: none;
}

.auth-soft-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0.05rem 0 0.75rem;
}

.auth-soft-remember {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    color: var(--auth-soft-ink);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.auth-soft-remember input {
    width: 1.05rem;
    height: 1.05rem;
    margin: 0;
    accent-color: var(--auth-soft-ink);
    cursor: pointer;
}

.auth-soft-forgot {
    color: var(--auth-soft-ink);
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.auth-soft-forgot:hover,
.auth-soft-forgot:focus,
.auth-soft-forgot:active {
    color: var(--auth-soft-ink);
    text-decoration: none;
}

body.auth-soft .auth-soft-submit {
    min-height: 3.1rem;
    margin-top: 0.15rem;
    border-radius: 12px;
    background: var(--auth-soft-ink);
    box-shadow: 0 10px 24px rgba(20, 69, 50, 0.22);
    font-size: 1.02rem;
}

body.auth-soft .auth-soft-submit:hover {
    background: #0f3728;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(20, 69, 50, 0.28);
}

body.auth-soft:not(.auth-register) .auth-soft-submit {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 45%, #1d4ed8 100%);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}

body.auth-soft:not(.auth-register) .auth-soft-submit:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 45%, #1e40af 100%);
    color: #fff;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.36);
}

body.auth-soft:not(.auth-register) .auth-soft-ico {
    color: #2563eb;
}

body.auth-soft:not(.auth-register) .auth-soft-input:focus-within {
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

body.auth-soft:not(.auth-register) .auth-soft-input:focus-within .auth-soft-ico {
    color: #1d4ed8;
}

.auth-soft-social {
    margin-top: 1.05rem;
}

body.auth-soft:not(.auth-register) .auth-soft-social {
    margin-top: 1.85rem;
}

.auth-soft-or {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--auth-soft-muted);
    font-size: 0.86rem;
    font-weight: 600;
}

.auth-soft-or::before,
.auth-soft-or::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: #e5e7eb;
}

.auth-soft-or span {
    flex: 0 0 auto;
}

.auth-soft-social-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.auth-soft-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.15rem;
    height: 3.15rem;
    padding: 0;
    border: 1px solid #ececec;
    border-radius: 999px;
    background: #fff;
    color: #111827;
    font-size: 1.2rem;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.auth-soft-social-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
}

.auth-soft-social-btn .fa-google {
    background: conic-gradient(from -45deg, #ea4335 110deg, #fbbc05 0 200deg, #34a853 0 290deg, #4285f4 0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.auth-soft-social-btn .fa-microsoft {
    color: #00a4ef;
}

.auth-soft-foot {
    margin: 1.05rem 0 0;
    text-align: center;
    color: #6b7280;
    font-size: 0.92rem;
    font-weight: 600;
}

body.auth-soft:not(.auth-register) .auth-soft-foot {
    margin-top: 0.85rem;
}

.auth-soft-foot a {
    color: var(--auth-soft-ink);
    font-weight: 800;
    text-decoration: none;
}

.auth-soft-foot a:hover {
    text-decoration: underline;
}

.auth-soft-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    margin-top: 1.55rem;
    min-height: 2.75rem;
    padding: 0.55rem 1rem;
    border: 1px solid rgba(20, 69, 50, 0.18);
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f3f7f4 100%);
    color: var(--auth-soft-ink, #144532);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(20, 69, 50, 0.06);
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.auth-soft-home i {
    font-size: 0.95rem;
}

.auth-soft-home:hover {
    color: var(--auth-soft-ink, #144532);
    border-color: rgba(20, 69, 50, 0.32);
    background: linear-gradient(180deg, #fff 0%, #eaf3ee 100%);
    box-shadow: 0 10px 22px rgba(20, 69, 50, 0.1);
    transform: translateY(-1px);
    text-decoration: none;
}

.auth-soft-home:active {
    transform: translateY(0);
}

body.auth-soft .auth-summary:not(:empty) {
    margin-bottom: 0.85rem;
    border-radius: 14px;
}

body.auth-soft .auth-help-line {
    margin: 0.35rem 0.35rem 0;
    color: #9ca3af;
    font-size: 0.78rem;
}

.auth-soft-captcha {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.auth-soft-captcha .auth-soft-input {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
}

.auth-soft-captcha .reg-captcha__img {
    flex: 0 0 auto;
    width: 7.25rem;
    height: 2.7rem;
    max-height: 2.7rem;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid var(--auth-soft-line);
    background: #fff;
}

body.auth-register.auth-soft .auth-soft-captcha .auth-soft-input {
    min-height: 2.7rem;
    height: 2.7rem;
}

body.auth-register.auth-soft .auth-soft-captcha .reg-captcha__input {
    height: auto !important;
    min-height: 0 !important;
}

.auth-soft-toast {
    /* Form sütununun ortası (mavi yan panel değil) */
    position: absolute;
    z-index: 1300;
    top: 1rem;
    left: 50%;
    right: auto;
    width: min(22rem, calc(100% - 1.5rem));
    transform: translateX(-50%);
    pointer-events: none;
}

.auth-soft-toast[hidden] {
    display: none !important;
}

.auth-soft-toast__card {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 0.95rem;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #144532 0%, #1a5c40 55%, #227a55 100%);
    box-shadow: 0 14px 32px rgba(20, 69, 50, 0.28);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.45;
    pointer-events: auto;
    animation: auth-soft-toast-in 0.28s ease;
}

.auth-soft-toast__card > span {
    flex: 1 1 auto;
    text-align: right;
}

.auth-soft-toast__close {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 1.7rem;
    height: 1.7rem;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.auth-soft-toast__close:hover,
.auth-soft-toast__close:focus-visible {
    background: rgba(255, 255, 255, 0.16);
}

@keyframes auth-soft-toast-in {
    from {
        opacity: 0;
        transform: translateY(-0.4rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body.auth-soft .auth-soft-pane {
    position: relative;
    overflow: hidden;
    background: var(--auth-soft-bg);
}

body.auth-soft .auth-form-section.auth-soft-pane {
    align-items: stretch;
    justify-content: center;
    padding: 0;
    background: var(--auth-soft-bg);
    box-shadow: 10px 0 30px rgba(15, 23, 42, 0.08);
}

body.auth-soft .reg-shell.auth-soft-pane {
    position: relative;
    justify-content: flex-start;
    align-items: stretch;
    padding: 0;
    background: var(--auth-soft-bg);
}

body.auth-soft .auth-soft-pane .auth-soft-wave {
    position: absolute;
}

/* Soft auth: mobil ile aynı ölçü (masaüstü form paneli de aynı) */
html:has(body.auth-soft) {
    font-size: 17px;
}

body.auth-soft .auth-soft-page {
    width: 100%;
    max-width: 26rem;
    padding: 0.85rem 1.15rem 1.65rem;
}

body.auth-soft:not(.auth-register) .auth-soft-page {
    padding-top: 3.35rem;
    padding-bottom: 1.25rem;
}

body.auth-soft .auth-soft-back {
    top: 0.85rem;
    right: 0.9rem;
    width: 2.7rem;
    height: 2.7rem;
    font-size: 1.15rem;
}

body.auth-soft .auth-soft-brand {
    margin: 1.65rem 0 1.15rem;
}

body.auth-soft:not(.auth-register) .auth-soft-brand {
    margin: 0.65rem 0 0.45rem;
}

body.auth-soft:not(.auth-register) .auth-soft-form {
    margin-top: 1.45rem;
}

body.auth-soft .auth-soft-logo {
    width: 4.85rem;
    height: 4.85rem;
    margin-bottom: 0.55rem;
}

body.auth-soft .auth-soft-logo img {
    width: 4.4rem;
    height: 4.4rem;
}

body.auth-soft .auth-soft-lockup .auth-soft-logo {
    width: 2.7rem;
    height: 2.7rem;
    margin-bottom: 0;
}

body.auth-soft .auth-soft-lockup .auth-soft-logo img {
    width: 100%;
    height: 100%;
}

body.auth-soft .auth-soft-name {
    font-size: 1.4rem;
}

body.auth-soft .auth-soft-brand h1 {
    font-size: 1.65rem;
}

body.auth-soft .auth-soft-brand p {
    margin-top: 0.3rem;
    font-size: 1rem;
}

body.auth-soft .auth-field {
    margin-bottom: 0.75rem;
}

body.auth-soft:not(.auth-register) .auth-field {
    margin-bottom: 0.6rem;
}

body.auth-soft .auth-soft-input {
    gap: 0.65rem;
    min-height: 3.45rem;
    padding: 0.35rem 1.05rem;
}

body.auth-soft .auth-soft-input:has(.auth-eye) {
    padding-inline-end: 3rem;
}

body.auth-soft .auth-soft-ico {
    width: 1.35rem;
    font-size: 1.15rem;
}

body.auth-soft .auth-soft-input .form-control,
body.auth-soft .auth-soft-input .auth-control {
    min-height: 2.45rem;
    font-size: 1.05rem !important;
}

body.auth-soft .auth-soft-input .auth-eye {
    top: 50%;
    right: 0.5rem;
    width: 2.35rem;
    height: 2.35rem;
    font-size: 1.12rem;
    transform: translateY(-50%);
}

body.auth-soft .auth-soft-remember {
    font-size: 0.95rem;
    gap: 0.5rem;
}

body.auth-soft .auth-soft-remember input {
    width: 1.15rem;
    height: 1.15rem;
}

body.auth-soft .auth-soft-submit {
    min-height: 3.4rem;
    font-size: 1.1rem;
}

body.auth-soft .auth-soft-or {
    margin-bottom: 0.85rem;
    font-size: 0.95rem;
}

body.auth-soft:not(.auth-register) .auth-soft-social {
    margin-top: 2.15rem;
}

body.auth-soft .auth-soft-social-row {
    gap: 1rem;
}

body.auth-soft .auth-soft-social-btn {
    width: 3.35rem;
    height: 3.35rem;
    font-size: 1.25rem;
}

body.auth-soft .auth-soft-foot {
    margin-top: 1.15rem;
    font-size: 1rem;
}

body.auth-soft:not(.auth-register) .auth-soft-foot {
    margin-top: 0.9rem;
}

body.auth-soft .auth-error {
    font-size: 0.92rem;
}

body.auth-soft .auth-help-line {
    font-size: 0.88rem;
}

body.auth-soft .auth-soft-toast__card {
    font-size: 0.88rem;
    padding: 0.8rem 0.95rem;
}

/* Register: inputlar biraz alçak; ikon boyutu aynı kalsın */
body.auth-register.auth-soft .auth-soft-input {
    min-height: 2.7rem;
    height: 2.7rem;
    padding-block: 0.2rem;
    padding-inline: 0.95rem 1rem;
    overflow: visible;
}

body.auth-register.auth-soft .auth-soft-ico {
    flex: 0 0 auto;
    align-self: center;
    order: 0;
    width: 1.35rem;
    font-size: 1.15rem;
    color: var(--auth-soft-ink);
}

body.auth-register.auth-soft .auth-soft-input:focus-within {
    border-color: rgba(20, 69, 50, 0.45);
    box-shadow: 0 0 0 3px rgba(20, 69, 50, 0.1);
}

body.auth-register.auth-soft .auth-soft-input:focus-within .auth-soft-ico {
    color: #0f3728;
}

body.auth-register.auth-soft .auth-soft-input .form-control,
body.auth-register.auth-soft .auth-soft-input .auth-control {
    flex: 1 1 auto;
    align-self: center;
    width: auto !important;
    min-width: 0;
    min-height: 0;
    height: auto;
    line-height: 1.35;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    /* RTL metinde son harf solda; solda boşluk kalsın */
    padding-block: 0 !important;
    padding-inline: 0.15rem 0.4rem !important;
    box-sizing: border-box;
}

body.auth-register.auth-soft .auth-soft-input .auth-control.input-ltr {
    direction: ltr;
    text-align: left;
    /* LTR + Farsça placeholder: sol kenarda harf kesilmesin */
    padding-inline: 0.4rem 0.15rem !important;
}

/* Register: şifre okunaklı; Farsça placeholder dikey ortada kalsın */
body.auth-register.auth-soft .auth-soft-input .auth-control[name="Password"],
body.auth-register.auth-soft .auth-soft-input .auth-control[name="PasswordConfirm"] {
    font-family: "Segoe UI", "Vazirmatn", "Shabnam", Tahoma, sans-serif;
    letter-spacing: 0.02em;
    font-size: 1.02rem !important;
    line-height: 1.35;
}

body.auth-register.auth-soft .auth-soft-input .auth-control[name="Password"]::placeholder,
body.auth-register.auth-soft .auth-soft-input .auth-control[name="PasswordConfirm"]::placeholder {
    line-height: 1.35;
    position: relative;
    top: 0;
    transform: none;
    opacity: 1;
}

body.auth-register.auth-soft .auth-soft-submit {
    min-height: 3.1rem;
}

@media (min-width: 992px) {
    body.auth-soft {
        background: #fff;
    }

    body.auth-soft .auth-soft-page {
        width: 100%;
        max-width: 26rem;
        min-height: 100%;
        margin-inline: auto;
    }

    body.auth-soft .auth-form-section.auth-soft-pane {
        min-height: 100vh;
        display: flex;
        align-items: flex-start;
        padding-top: 0;
    }

    body.auth-soft .reg-shell.auth-soft-pane {
        justify-content: flex-start;
        min-height: 100vh;
    }
}

@media (max-width: 991.98px) {
    body.auth-soft .auth-form-section.auth-soft-pane {
        box-shadow: none;
        padding: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-soft-toast__card,
    .auth-soft-social-btn,
    body.auth-soft .auth-soft-submit {
        animation: none;
        transition: none;
    }
}
