/* auth.css - consolidated styles for Account/Home auth pages.
   Moved verbatim from each view's inline <style> block during CSS consolidation.
   Loaded only on auth views via @section Styles, so nothing leaks into admin/referral pages. */

/* ===== Shared page shell (single source of truth) =====
   Common layout resets for every auth/registration page.
   Change these ONCE here instead of per-section. */
html {
	min-height: 100%;
}

body {
	min-height: 100vh;
	/* fixed so the gradient always fills the viewport, even when the content scrolls */
	background: linear-gradient(180deg, #f4f7fb 0%, #e9eef6 100%) fixed;
}

.main-content {
	background-color: transparent !important;
	box-shadow: none !important;
	border: none !important;
}

#toggleWidthBtn {
	display: none !important;
}

/* ===== ChangePassword.cshtml ===== */

    .pw-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 56px 24px 72px;
    }

    .pw-card {
        width: 100%;
        max-width: 460px;
        background: #ffffff;
        border: 1px solid #e5e9f0;
        border-radius: 18px;
        box-shadow: 0 12px 34px rgba(15, 30, 70, 0.10);
        padding: 44px 42px;
    }

    .pw-title {
        text-align: center;
        font-size: 1.35rem;
        font-weight: 700;
        color: #16244a;
        margin: 0 0 6px;
    }

    .pw-subtitle {
        text-align: center;
        color: #6b7280;
        font-size: 0.92rem;
        margin-bottom: 28px;
        line-height: 1.5;
    }

    .pw-expired {
        text-align: center;
        color: #b45309;
        background: rgba(245, 158, 11, 0.1);
        border: 1px solid rgba(245, 158, 11, 0.3);
        border-radius: 10px;
        padding: 10px 14px;
        font-size: 0.88rem;
        margin-bottom: 22px;
    }

    .pw-card .form-label {
        display: block;
        font-weight: 600;
        color: #374151;
        font-size: 0.85rem;
        margin-bottom: 6px;
        text-align: left;
        white-space: nowrap;
    }

    .pw-card .form-label.required::after {
        content: " *";
        color: #dc3545;
        font-weight: 700;
    }

    .pw-card .form-control {
        padding: 11px 14px;
        border: 1px solid #d1d7e0;
        border-radius: 10px;
        font-size: 0.95rem;
    }

    .pw-card .form-control:focus {
        border-color: #2f6fed;
        box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.15);
    }

    .pw-card .field-block {
        margin-bottom: 18px;
    }

    /* Show/Hide passwords row rendered by _PasswordVisibility partial */
    .pw-card .my-3 {
        display: flex;
        align-items: center;
        gap: 6px;
        margin: 4px 0 22px !important;
    }

    .pw-card #showPass {
        appearance: auto;
        -webkit-appearance: auto;
        opacity: 1;
        position: static;
        width: 1rem;
        height: 1rem;
        margin: 0;
        cursor: pointer;
    }

    .pw-card .my-3 label {
        font-size: 0.82rem;
        color: #4b5563;
        margin: 0;
        cursor: pointer;
        white-space: nowrap;
    }

    .pw-card .btn-pw {
        width: 100%;
        margin-top: 4px;
        padding: 12px;
        border-radius: 10px;
        font-weight: 600;
        font-size: 0.98rem;
        background: #2f6fed;
        border: none;
        color: #fff;
        transition: background 0.15s ease-in-out, transform 0.05s ease;
    }

    .pw-card .btn-pw:hover {
        background: #2159c7;
    }

    .pw-card .btn-pw:active {
        transform: translateY(1px);
    }

    .pw-card .pw-success {
        text-align: center;
    }

    .pw-card .pw-success .pw-success-icon {
        width: 64px;
        height: 64px;
        border-radius: 50%;
        background: rgba(34, 197, 94, 0.12);
        color: #16a34a;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.7rem;
        margin: 0 auto 18px;
    }

    .pw-card .pw-success p {
        color: #4b5563;
        font-size: 0.95rem;
        margin: 0 0 22px;
    }

    .pw-links {
        text-align: center;
        margin-top: 20px;
        margin-bottom: 0;
    }

    .pw-links a {
        color: #2f6fed;
        text-decoration: none;
        font-size: 0.85rem;
        font-weight: 600;
    }

    .pw-links a:hover {
        text-decoration: underline;
    }

    .pw-card .btn-pw.btn-continue {
        display: inline-block;
        width: auto;
        min-width: 160px;
        text-align: center;
        text-decoration: none;
    }

/* ===== EnableSMSAuthentication.cshtml ===== */

    .sms-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 56px 24px 72px;
    }

    .sms-card {
        width: 100%;
        max-width: 460px;
        background: #ffffff;
        border: 1px solid #e5e9f0;
        border-radius: 18px;
        box-shadow: 0 12px 34px rgba(15, 30, 70, 0.10);
        padding: 44px 42px;
    }

    .sms-icon {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background: rgba(47, 111, 237, 0.1);
        color: #2f6fed;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        margin: 0 auto 18px;
    }

    .sms-title {
        text-align: center;
        font-size: 1.35rem;
        font-weight: 700;
        color: #16244a;
        margin: 0 0 6px;
    }

    .sms-subtitle {
        text-align: center;
        color: #6b7280;
        font-size: 0.92rem;
        margin-bottom: 28px;
        line-height: 1.5;
    }

    .sms-card .form-label {
        display: block;
        font-weight: 600;
        color: #374151;
        font-size: 0.85rem;
        margin-bottom: 6px;
        text-align: left;
    }

    .sms-card .form-label.required::after {
        content: " *";
        color: #dc3545;
        font-weight: 700;
    }

    .sms-card .form-control {
        padding: 11px 14px;
        border: 1px solid #d1d7e0;
        border-radius: 10px;
        font-size: 0.95rem;
    }

    .sms-card .form-control:focus {
        border-color: #2f6fed;
        box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.15);
    }

    .sms-card .field-block {
        margin-bottom: 18px;
    }

    .sms-card .btn-sms {
        width: 100%;
        margin-top: 4px;
        padding: 12px;
        border-radius: 10px;
        font-weight: 600;
        font-size: 0.98rem;
        background: #2f6fed;
        border: none;
        color: #fff;
        transition: background 0.15s ease-in-out, transform 0.05s ease;
    }

    .sms-card .btn-sms:hover {
        background: #2159c7;
    }

    .sms-card .btn-sms:active {
        transform: translateY(1px);
    }

    .sms-card .sms-enabled {
        text-align: center;
    }

    .sms-card .sms-enabled .sms-enabled-icon {
        width: 64px;
        height: 64px;
        border-radius: 50%;
        background: rgba(34, 197, 94, 0.12);
        color: #16a34a;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.7rem;
        margin: 0 auto 18px;
    }

    .sms-card .sms-enabled p {
        color: #4b5563;
        font-size: 0.95rem;
        margin: 0;
    }

    .sms-card .sms-enabled a {
        color: #2f6fed;
        font-weight: 600;
        text-decoration: none;
    }

    .sms-card .sms-enabled a:hover {
        text-decoration: underline;
    }

/* ===== ForgotPassword.cshtml ===== */

    .login-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 56px 24px 72px;
    }

    .login-card {
        width: 100%;
        max-width: 430px;
        background: #ffffff;
        border: 1px solid #e5e9f0;
        border-radius: 18px;
        box-shadow: 0 12px 34px rgba(15, 30, 70, 0.10);
        padding: 44px 42px;
    }

    .login-card .login-title {
        text-align: center;
        font-size: 1.4rem;
        font-weight: 700;
        color: #16244a;
        margin-bottom: 6px;
    }

    .login-card .login-subtitle {
        text-align: center;
        color: #6b7280;
        font-size: 0.92rem;
        margin-bottom: 28px;
        line-height: 1.5;
    }

    .login-card .form-label {
        display: block;
        font-weight: 600;
        color: #374151;
        font-size: 0.85rem;
        margin-bottom: 6px;
        text-align: left;
        text-transform: capitalize;
    }

    .login-card .form-label.required::after {
        content: " *";
        color: #dc3545;
        font-weight: 700;
    }

    .login-card .form-control {
        padding: 11px 14px;
        border: 1px solid #d1d7e0;
        border-radius: 10px;
        font-size: 0.95rem;
    }

    .login-card .form-control:focus {
        border-color: #2f6fed;
        box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.15);
    }

    .fp-page .login-card .btn-login {
        width: 100%;
        margin-top: 22px;
        padding: 12px;
        border-radius: 10px;
        font-weight: 600;
        font-size: 0.98rem;
        background: #2f6fed;
        border: none;
        color: #fff;
        transition: background 0.15s ease-in-out, transform 0.05s ease;
    }

    .login-card .btn-login:hover {
        background: #2159c7;
    }

    .login-card .btn-login:active {
        transform: translateY(1px);
    }

    .login-card .login-links {
        text-align: center;
        margin-top: 20px;
        margin-bottom: 0;
    }

    .login-card .login-links a {
        color: #2f6fed;
        text-decoration: none;
        font-size: 0.85rem;
        font-weight: 600;
    }

    .login-card .login-links a:hover {
        text-decoration: underline;
    }

/* ===== Login.cshtml ===== */

    .login-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 56px 24px 72px;
    }

    .login-card {
        width: 100%;
        max-width: 430px;
        background: #ffffff;
        border: 1px solid #e5e9f0;
        border-radius: 18px;
        box-shadow: 0 12px 34px rgba(15, 30, 70, 0.10);
        padding: 44px 42px;
    }

    .login-card .login-logo {
        display: block;
        height: 46px;
        margin: 0 auto 20px;
    }

    .login-card .login-title {
        text-align: center;
        font-size: 1.4rem;
        font-weight: 700;
        color: #16244a;
        margin-bottom: 6px;
    }

    .login-card .login-subtitle {
        text-align: center;
        color: #6b7280;
        font-size: 0.92rem;
        margin-bottom: 28px;
    }

    .login-card .form-label {
        display: block;
        font-weight: 600;
        color: #374151;
        font-size: 0.85rem;
        margin-bottom: 6px;
        text-align: left;
        text-transform: capitalize;
    }

    /* Show-password + forgot-password on one row, matching the home page. */
    .login-card .login-options {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin: 4px 0 24px;
    }

    .login-card .show-pass {
        display: flex;
        align-items: center;
        gap: 6px;
        margin: 0;
        font-weight: 400;
        font-size: 0.85rem;
        color: #4b5563;
        cursor: pointer;
        white-space: nowrap;
    }

    /* Ensure the checkbox is visible (global/theme CSS can hide native checkboxes) */
    .login-card .show-pass input[type="checkbox"] {
        appearance: auto;
        -webkit-appearance: auto;
        opacity: 1;
        position: static;
        width: 1rem;
        height: 1rem;
        margin: 0;
        pointer-events: auto;
        cursor: pointer;
    }

    .login-card #loginLink {
        color: #2f6fed;
        text-decoration: none;
        font-size: 0.85rem;
        font-weight: 600;
    }

    .login-card #loginLink:hover {
        text-decoration: underline;
    }

    .login-card .form-control {
        padding: 11px 14px;
        border: 1px solid #d1d7e0;
        border-radius: 10px;
        font-size: 0.95rem;
    }

    .login-card .form-control:focus {
        border-color: #2f6fed;
        box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.15);
    }

    .login-card .btn-login {
        width: 100%;
        padding: 12px;
        border-radius: 10px;
        font-weight: 600;
        font-size: 0.98rem;
        background: #2f6fed;
        border: none;
        color: #fff;
        transition: background 0.15s ease-in-out, transform 0.05s ease;
    }

    .login-card .btn-login:hover {
        background: #2159c7;
    }

    .login-card .btn-login:active {
        transform: translateY(1px);
    }

/* ===== ManageAuthenticationOption.cshtml ===== */

    .mfa-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 56px 24px 72px;
    }

    .mfa-card {
        width: 100%;
        max-width: 760px;
        background: #ffffff;
        border: 1px solid #e5e9f0;
        border-radius: 18px;
        box-shadow: 0 12px 34px rgba(15, 30, 70, 0.10);
        padding: 44px 42px;
    }

    .mfa-title {
        text-align: center;
        font-size: 1.5rem;
        font-weight: 700;
        color: #16244a;
        margin: 0 0 6px;
    }

    .mfa-subtitle {
        text-align: center;
        color: #6b7280;
        font-size: 0.95rem;
        margin-bottom: 32px;
        line-height: 1.5;
    }

    .mfa-options {
        display: flex;
        flex-wrap: wrap;
        gap: 22px;
        justify-content: center;
    }

    .mfa-option {
        flex: 1 1 260px;
        max-width: 320px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        border: 1px solid #e5e9f0;
        border-radius: 14px;
        padding: 30px 26px;
        background: #fbfcfe;
        transition: border-color 0.15s ease, box-shadow 0.15s ease;
    }

    .mfa-option:hover {
        border-color: #2f6fed;
        box-shadow: 0 10px 24px rgba(47, 111, 237, 0.12);
    }

    .mfa-option .mfa-icon {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background: rgba(47, 111, 237, 0.1);
        color: #2f6fed;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        margin-bottom: 18px;
    }

    .mfa-option h3 {
        font-size: 1.1rem;
        font-weight: 700;
        color: #16244a;
        margin: 0 0 8px;
    }

    .mfa-option p {
        color: #6b7280;
        font-size: 0.88rem;
        line-height: 1.5;
        margin: 0 0 22px;
        flex: 1 1 auto;
    }

    .mfa-option .btn-mfa {
        display: inline-block;
        width: 100%;
        text-align: center;
        padding: 11px 18px;
        border-radius: 10px;
        font-weight: 600;
        font-size: 0.92rem;
        background: #2f6fed;
        color: #fff;
        text-decoration: none;
        transition: background 0.15s ease, transform 0.05s ease;
    }

    .mfa-option .btn-mfa:hover {
        background: #2159c7;
        color: #fff;
    }

    .mfa-option .btn-mfa:active {
        transform: translateY(1px);
    }

    .mfa-empty {
        text-align: center;
        color: #6b7280;
        font-size: 0.92rem;
    }

/* ===== SecondFactorAuthentication.cshtml ===== */

    .sfa-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 56px 24px 72px;
    }

    .sfa-card {
        width: 100%;
        max-width: 460px;
        background: #ffffff;
        border: 1px solid #e5e9f0;
        border-radius: 18px;
        box-shadow: 0 12px 34px rgba(15, 30, 70, 0.10);
        padding: 44px 42px;
    }

    .sfa-icon {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background: rgba(47, 111, 237, 0.1);
        color: #2f6fed;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        margin: 0 auto 18px;
    }

    .sfa-title {
        text-align: center;
        font-size: 1.35rem;
        font-weight: 700;
        color: #16244a;
        margin: 0 0 6px;
    }

    .sfa-subtitle {
        text-align: center;
        color: #6b7280;
        font-size: 0.92rem;
        margin-bottom: 26px;
        line-height: 1.5;
    }

    .sfa-card .form-label {
        display: block;
        font-weight: 600;
        color: #374151;
        font-size: 0.85rem;
        margin-bottom: 6px;
        text-align: left;
    }

    .sfa-card .form-label.required::after {
        content: " *";
        color: #dc3545;
        font-weight: 700;
    }

    .sfa-card .form-control {
        padding: 11px 14px;
        border: 1px solid #d1d7e0;
        border-radius: 10px;
        font-size: 0.95rem;
        letter-spacing: 0.15em;
    }

    .sfa-card .form-control:focus {
        border-color: #2f6fed;
        box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.15);
    }

    .sfa-card .field-block {
        margin-bottom: 18px;
    }

    .sfa-card .btn-sfa {
        width: 100%;
        margin-top: 4px;
        padding: 12px;
        border-radius: 10px;
        font-weight: 600;
        font-size: 0.98rem;
        background: #2f6fed;
        border: none;
        color: #fff;
        transition: background 0.15s ease-in-out, transform 0.05s ease;
    }

    .sfa-card .btn-sfa:hover {
        background: #2159c7;
    }

    .sfa-card .btn-sfa:active {
        transform: translateY(1px);
    }

    .sfa-alt {
        text-align: center;
        margin: 20px 0 0;
        font-size: 0.85rem;
        color: #6b7280;
    }

    .sfa-alt a,
    .sfa-resend button {
        color: #2f6fed;
        text-decoration: none;
        font-weight: 600;
        font-size: 0.85rem;
    }

    .sfa-alt a:hover,
    .sfa-resend button:hover {
        text-decoration: underline;
    }

    .sfa-resend {
        text-align: center;
        margin-top: 10px;
    }

    .sfa-resend button {
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
    }
