/* ============================================================
   Bitermin Auth Pages — modern gradient shell
   Used by: Views/Auth/Login.cshtml, Register.cshtml, PasswordReset.cshtml
   Layout: _LayoutNotLogin.cshtml
   ============================================================ */

#appCapsule:has(> .auth-shell) {
    padding: 0;
    margin: 0;
}

.auth-shell {
    position: relative;
    min-height: 100vh;
    padding-bottom: 48px;
    overflow: hidden;
    background: linear-gradient(135deg, #4e2a84 0%, #6a3fbf 45%, #8f5fe8 100%);
}

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

.auth-shell:before {
    width: 320px;
    height: 320px;
    top: -130px;
    right: -110px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 70%);
}

.auth-shell:after {
    width: 280px;
    height: 280px;
    bottom: -90px;
    left: -95px;
    background: radial-gradient(circle, rgba(179, 46, 166, 0.35) 0%, rgba(179, 46, 166, 0) 70%);
}

.auth-shell .appHeader.transparent:before {
    background: transparent;
}

.auth-shell .appHeader .headerButton,
.auth-shell .appHeader .pageTitle {
    color: #fff;
}

.auth-shell .appHeader .pageTitle .logo {
    filter: brightness(0) invert(1);
}

/* --- Hero (logo + heading) --- */

.auth-hero {
    position: relative;
    z-index: 1;
    padding: 66px 30px 22px;
    text-align: center;
    color: #fff;
}

.auth-hero.compact {
    padding-top: 78px;
}

.auth-logo {
    height: 30px;
    margin-bottom: 22px;
}

.auth-hero h1 {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
}

.auth-hero p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 0;
    line-height: 1.5;
}

/* --- Step indicator (segmented pill tabs) --- */

.auth-step-tabs {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 4px;
    margin: 0 18px 20px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    border-radius: 999px;
}

.auth-step-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 4px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.72);
    transition: all .25s ease;
    white-space: nowrap;
}

.auth-step-tab .step-num {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.auth-step-tab.active {
    background: #fff;
    color: #4e2a84;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
}

.auth-step-tab.active .step-num {
    background: linear-gradient(135deg, #6236FF, #8f5fe8);
    color: #fff;
}

/* --- Card --- */

.auth-card-wrap {
    position: relative;
    z-index: 1;
    padding: 0 18px;
}

.auth-card {
    background: #fff;
    border-radius: 26px;
    padding: 26px 20px 20px;
    box-shadow: 0 24px 48px rgba(30, 14, 66, 0.28);
}

body.dark-mode .auth-card {
    background: #1f2d3d;
}

.auth-card-header {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: #8f5fe8;
    margin-bottom: 14px;
}

body.dark-mode .auth-card-header {
    color: #b79bf2;
}

/* --- Form fields inside the card --- */

.auth-card .form-group .label {
    color: #8b8398;
    font-weight: 600;
    font-size: 12px;
}

body.dark-mode .auth-card .form-group .label {
    color: #a9b7c9;
}

.auth-card .input-group-text {
    background: #f4f1fb;
    border: 1px solid #e7e2f5;
    border-radius: 14px 0 0 14px !important;
    color: #6236FF;
    font-weight: 700;
}

body.dark-mode .auth-card .input-group-text {
    background: #16101f;
    border-color: #2c2440;
    color: #b79bf2;
}

.auth-gsm-input{
    padding-left: 10px !important;
}

.auth-card .form-control {
    border: 1px solid #e7e2f5;
    border-radius: 14px;
    background: #f8f7fc;
    font-weight: 600;
    color: #27173E;
}

.auth-card .input-group .form-control {
    border-radius: 0 14px 14px 0 !important;
}

.auth-card .form-control:focus {
    border-color: #6236FF;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(98, 54, 255, 0.12);
}

body.dark-mode .auth-card .form-control {
    background: #16101f;
    border-color: #2c2440;
    color: #fff;
}

body.dark-mode .auth-card .form-control:focus {
    background: #1c1530;
    box-shadow: 0 0 0 3px rgba(143, 95, 232, 0.22);
}

.auth-card .form-group.boxed .form-control {
    border-radius: 14px;
}

/* --- Links row --- */

.auth-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.auth-links a {
    font-weight: 600;
    color: #6236FF;
    text-decoration: none;
}

body.dark-mode .auth-links a {
    color: #b79bf2;
}

.auth-links a.text-muted {
    color: #8b8398 !important;
    font-weight: 500;
}

/* --- Gradient primary button --- */

.auth-card .btn-primary,
.auth-btn-gradient {
    background: linear-gradient(135deg, #6236FF 0%, #8f5fe8 100%) !important;
    border: 0 !important;
    border-radius: 16px;
    height: 52px;
    font-weight: 700;
    letter-spacing: .2px;
    box-shadow: 0 14px 28px rgba(98, 54, 255, 0.32);
}

.auth-card .btn-primary:active {
    transform: scale(0.98);
}

/* --- Password visibility toggle --- */

.form-group .toggle-password-input {
    display: none;
    align-items: center;
    justify-content: center;
    color: #958d9e;
    height: 38px;
    font-size: 22px;
    position: absolute;
    right: 0px;
    bottom: -5px;
    width: 32px;
    opacity: 0.5;
}

.form-group .toggle-password-input:hover,
.form-group .toggle-password-input:active {
    opacity: 0.8;
}

/* --- OTP code boxes --- */

.otp-input-group {
    display: flex;
    gap: 8px;
    width: 100%;
    margin-top: 12px;
}

.otp-input-group .otp-input-box {
    flex: 1 1 0;
    min-width: 0;
    height: 54px;
    padding: 0 !important;
    text-align: center;
    font-size: 1.4em;
    font-weight: 700;
    line-height: normal;
    color: #27173E !important;
    -webkit-text-fill-color: #27173E;
    opacity: 1;
    background-color: #f8f7fc;
    caret-color: #6236FF;
    border: 1px solid #e7e2f5;
    border-radius: 14px;
    background-clip: padding-box;
    -moz-appearance: textfield;
}

body.dark-mode .otp-input-group .otp-input-box {
    background-color: #16101f;
    border-color: #2c2440;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
}

.otp-input-group .otp-input-box::-webkit-outer-spin-button,
.otp-input-group .otp-input-box::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.otp-input-group .otp-input-box:focus {
    border-color: #6236FF;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(98, 54, 255, 0.15);
    outline: none;
}

body.dark-mode .otp-input-group .otp-input-box:focus {
    background-color: #1c1530;
}

/* --- Celebratory / welcome step (full-bleed on gradient, no card) --- */

.auth-welcome {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    padding: 90px 30px 10px;
}

.auth-welcome-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    color: #fff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.auth-welcome h1 {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
}

.auth-welcome p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.6;
    max-width: 320px;
    margin: 0 auto;
}

.auth-welcome .btn-light {
    margin-top: 32px;
    border-radius: 16px;
    height: 52px;
    font-weight: 700;
    color: #4e2a84;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2);
}

/* --- Google divider / panel tweaks on white card --- */

.auth-card .google-login-panel {
    margin-top: 14px;
}
