/* ============================================================
   Smart Biashara — CONSOLIDATED AUTH CSS (sb-auth.css)
   Built 2026-08-09 by NINO: 7 render-blocking files -> 1.
   Section order preserved exactly from the old <link> order,
   so !important cascade math is byte-identical to before.
   Old sb-auth-*.css files retired on disk (not deleted).
   ============================================================ */

/* ==== [sb-auth-vars.css] CSS Variables (replaces deleted sb-design-system.css) ==== */
/* ============================================
   SmartBiashara Auth Layout CSS Variables
   Only used by auth.blade.php (login, register, password reset, password email)
   ============================================ */

:root {
    /* Backgrounds */
    --sb-bg: #F7FAF9;
    --sb-surface: #FFFFFF;
    --sb-surface-2: #F0F4F2;

    /* Brand colors */
    --sb-primary: #2A9288;
    --sb-primary-700: #1C615B;
    --sb-primary-50: #E8F5F3;

    /* Gradients */
    --sb-grad-primary-soft: linear-gradient(135deg, #2A9288 0%, #247872 100%);
    --sb-grad-primary: linear-gradient(135deg, #2A9288 0%, #1C615B 100%);

    /* Text */
    --sb-text: #0F1F1D;
    --sb-text-muted: #5A6B69;
    --sb-text-inverse: #FFFFFF;

    /* Borders */
    --sb-border: #E2E8E5;
    --sb-border-strong: #CBD5D2;

    /* Shadows */
    --sb-shadow: 0 1px 3px rgba(15, 31, 29, 0.06), 0 1px 2px rgba(15, 31, 29, 0.04);
    --sb-shadow-md: 0 4px 6px rgba(15, 31, 29, 0.07), 0 2px 4px rgba(15, 31, 29, 0.04);
    --sb-shadow-lg: 0 10px 25px rgba(15, 31, 29, 0.08), 0 4px 10px rgba(15, 31, 29, 0.04);

    /* Border radius */
    --sb-radius: 8px;
    --sb-radius-md: 12px;
    --sb-radius-lg: 16px;
    --sb-radius-xl: 24px;
    --sb-radius-pill: 999px;
}

/* ===== Form element styling (for register, password reset pages) ===== */
.auth-main input[type="text"],
.auth-main input[type="email"],
.auth-main input[type="password"],
.auth-main input[type="tel"],
.auth-main input[type="number"],
.auth-main input[type="url"],
.auth-main select,
.auth-main textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    color: var(--sb-text);
    background-color: #fff;
    border: 1px solid var(--sb-border);
    border-radius: var(--sb-radius);
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
    -webkit-appearance: none;
    appearance: none;
}

.auth-main input[type="text"]:focus,
.auth-main input[type="email"]:focus,
.auth-main input[type="password"]:focus,
.auth-main input[type="tel"]:focus,
.auth-main input[type="number"]:focus,
.auth-main input[type="url"]:focus,
.auth-main select:focus,
.auth-main textarea:focus {
    outline: none;
    border-color: var(--sb-primary);
    box-shadow: 0 0 0 3px rgba(42, 146, 136, 0.15);
}

.auth-main select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235A6B69' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 36px;
}

.auth-main label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--sb-text);
}

.auth-main .form-group {
    margin-bottom: 16px;
}

.auth-main .form-row {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 640px) {
    .auth-main .form-row {
        grid-template-columns: 1fr;
    }
}

/* ===== Primary button styling ===== */
.auth-main .btn-primary,
.auth-main button[type="submit"],
.auth-main input[type="submit"] {
    width: 100%;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: var(--sb-grad-primary);
    border: none;
    border-radius: var(--sb-radius);
    cursor: pointer;
    transition: all 0.15s;
    box-shadow: 0 1px 2px rgba(28, 97, 91, 0.2);
}

.auth-main .btn-primary:hover,
.auth-main button[type="submit"]:hover,
.auth-main input[type="submit"]:hover {
    background: var(--sb-grad-primary);
    filter: brightness(0.92);
    box-shadow: 0 2px 4px rgba(28, 97, 91, 0.25);
    transform: translateY(-1px);
}

.auth-main .btn-primary:active,
.auth-main button[type="submit"]:active,
.auth-main input[type="submit"]:active {
    transform: translateY(0);
}

.auth-main .btn-secondary {
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--sb-text);
    background: #fff;
    border: 1px solid var(--sb-border);
    border-radius: var(--sb-radius);
    cursor: pointer;
    transition: all 0.15s;
}

.auth-main .btn-secondary:hover {
    border-color: var(--sb-primary);
    color: var(--sb-primary);
}

/* ===== Required field indicator ===== */
.auth-main label .required,
.auth-main label.required::after {
    content: " *";
    color: #dc2626;
    font-weight: 700;
}

/* ===== Validation messages ===== */
.auth-main .help-block,
.auth-main .text-danger,
.auth-main .invalid-feedback {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: #dc2626;
}

.auth-main .has-error input,
.auth-main .has-error select,
.auth-main .has-error textarea {
    border-color: #dc2626;
}

.auth-main .has-error input:focus,
.auth-main .has-error select:focus,
.auth-main .has-error textarea:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

/* ===== Checkbox styling ===== */
.auth-main input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--sb-primary);
    cursor: pointer;
}

/* ===== Links in auth context ===== */
.auth-main a:not(.btn):not(.auth-back):not(.auth-brand) {
    color: var(--sb-primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-main a:not(.btn):not(.auth-back):not(.auth-brand):hover {
    color: var(--sb-primary-700);
    text-decoration: underline;
}

/* ==== [sb-auth-robust.css] Auth Robustness (validation, password strength, buttons) ==== */
/* ============================================
   SmartBiashara Auth Layout CSS - Landing Page Match
   Matches welcome.blade.php (landing page) typography & styling
   Font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif
   Body color: rgb(15, 23, 42) — slate-900
   Body bg: #ffffff
   ============================================ */

/* Force Inter font everywhere */
:root {
    /* Landing page exact variables */
    --sb-bg: #ffffff;
    --sb-surface: #FFFFFF;
    --sb-surface-2: #F8FAFC;
    --sb-surface-3: #FAFBFB;

    /* Brand colors (matching landing) */
    --sb-primary: #0D9488;
    --sb-primary-700: #0F766E;
    --sb-primary-500: #14B8A6;
    --sb-primary-50: #F0FDFA;
    --sb-primary-100: #CCFBF1;

    /* Text (matching landing slate palette) */
    --sb-text: #0F172A;          /* slate-900 */
    --sb-text-muted: #64748B;    /* slate-500 */
    --sb-text-soft: #94A3B8;     /* slate-400 */
    --sb-text-inverse: #FFFFFF;

    /* Borders */
    --sb-border: #E2E8F0;        /* slate-200 */
    --sb-border-strong: #CBD5E1; /* slate-300 */
    --sb-border-focus: #0D9488;

    /* States */
    --sb-error: #DC2626;
    --sb-error-light: #FEE2E2;
    --sb-error-50: #FEF2F2;
    --sb-success: #16A34A;
    --sb-success-light: #DCFCE7;
    --sb-success-50: #F0FDF4;
    --sb-warning: #D97706;
    --sb-warning-light: #FEF3C7;

    /* Shadows */
    --sb-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --sb-shadow-md: 0 4px 6px rgba(15, 23, 42, 0.07), 0 2px 4px rgba(15, 23, 42, 0.04);
    --sb-shadow-lg: 0 10px 25px rgba(15, 23, 42, 0.08), 0 4px 10px rgba(15, 23, 42, 0.04);
    --sb-shadow-focus: 0 0 0 3px rgba(13, 148, 136, 0.18);
    --sb-shadow-error: 0 0 0 3px rgba(220, 38, 38, 0.18);

    /* Border radius */
    --sb-radius: 10px;
    --sb-radius-md: 14px;
    --sb-radius-lg: 18px;
    --sb-radius-xl: 24px;
    --sb-radius-pill: 999px;

    /* Transitions */
    --sb-transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --sb-transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Gradients */
    --sb-grad-primary-soft: linear-gradient(135deg, #0D9488 0%, #0F766E 100%);
    --sb-grad-primary: linear-gradient(135deg, #0D9488 0%, #0F766E 100%);
    --sb-grad-primary-hover: linear-gradient(135deg, #0F766E 0%, #115E59 100%);
}

/* ===========================================
   FONT OVERRIDE - Inter everywhere
   =========================================== */
.auth-main,
.auth-main *,
body {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Body background - pure white like landing */
body {
    background: var(--sb-bg) !important;
    color: var(--sb-text) !important;
}

/* ===========================================
   TYPOGRAPHY (matching landing hierarchy)
   =========================================== */
.auth-main h1,
.auth-main .h1 {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 38px;
    font-weight: 800;
    color: var(--sb-text);
    letter-spacing: -0.76px;
    line-height: 1.15;
    margin: 0 0 8px;
}

.auth-main h2,
.auth-main .h2 {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 24px;
    font-weight: 700;
    color: var(--sb-text);
    letter-spacing: -0.4px;
    line-height: 1.25;
    margin: 0 0 8px;
}

.auth-main h3,
.auth-main .h3 {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 18px;
    font-weight: 700;
    color: var(--sb-text);
    letter-spacing: -0.2px;
    line-height: 1.3;
    margin: 0 0 8px;
}

.auth-main p {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    color: var(--sb-text-muted);
    line-height: 1.6;
    font-size: 15px;
    margin: 0 0 12px;
}

/* Section headings - match landing eyebrow style */
.auth-main .section-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    color: var(--sb-primary-700);
    text-transform: uppercase;
    letter-spacing: 1.44px;
    margin-bottom: 6px;
}

/* Subtext */
.auth-main .subtext,
.auth-main .subtitle,
.auth-main .text-muted {
    color: var(--sb-text-muted);
    font-size: 15px;
    line-height: 1.5;
}

/* ===========================================
   LABELS & FORM STRUCTURE
   =========================================== */
.auth-main label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--sb-text);
    line-height: 1.4;
    letter-spacing: 0;
}

.auth-main .form-group {
    margin-bottom: 18px;
    position: relative;
}

.auth-main .form-row {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 640px) {
    .auth-main .form-row {
        grid-template-columns: 1fr;
    }
}

/* Required field indicator */
.auth-main label.required::after,
.auth-main label .required {
    content: " *";
    color: var(--sb-error);
    font-weight: 700;
    margin-left: 2px;
}

/* Field hints */
.auth-main .form-text,
.auth-main .help-block {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--sb-text-muted);
    line-height: 1.4;
}

/* ===========================================
   BASE FORM ELEMENTS - Landing page match
   =========================================== */
.auth-main input[type="text"],
.auth-main input[type="email"],
.auth-main input[type="password"],
.auth-main input[type="tel"],
.auth-main input[type="number"],
.auth-main input[type="url"],
.auth-main input[type="date"],
.auth-main select,
.auth-main textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    color: var(--sb-text);
    background-color: #fff;
    border: 1px solid var(--sb-border);
    border-radius: var(--sb-radius);
    box-sizing: border-box;
    transition: border-color var(--sb-transition), box-shadow var(--sb-transition), background-color var(--sb-transition);
    -webkit-appearance: none;
    appearance: none;
    line-height: 1.5;
}

.auth-main input:hover:not(:focus):not(.is-invalid):not(:disabled),
.auth-main select:hover:not(:focus):not(.is-invalid):not(:disabled),
.auth-main textarea:hover:not(:focus):not(.is-invalid):not(:disabled) {
    border-color: var(--sb-border-strong);
}

.auth-main input:focus,
.auth-main select:focus,
.auth-main textarea:focus {
    outline: none;
    border-color: var(--sb-border-focus);
    box-shadow: var(--sb-shadow-focus);
}

.auth-main input:disabled,
.auth-main select:disabled,
.auth-main textarea:disabled {
    background-color: var(--sb-surface-2);
    cursor: not-allowed;
    opacity: 0.7;
}

.auth-main input::placeholder,
.auth-main textarea::placeholder {
    color: var(--sb-text-soft);
    opacity: 1;
    font-weight: 400;
}

.auth-main select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 36px;
    cursor: pointer;
}

/* ===========================================
   BUTTONS - Landing page match
   =========================================== */
.auth-main .btn-primary,
.auth-main button[type="submit"],
.auth-main input[type="submit"] {
    width: 100%;
    padding: 13px 22px;
    font-size: 14px;
    font-weight: 600;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    color: #fff;
    background: var(--sb-grad-primary);
    border: none;
    border-radius: var(--sb-radius);
    cursor: pointer;
    transition: all var(--sb-transition);
    box-shadow: 0 1px 2px rgba(15, 118, 110, 0.25);
    letter-spacing: 0;
    position: relative;
    overflow: hidden;
    line-height: 1.4;
}

.auth-main .btn-primary:hover:not(:disabled),
.auth-main button[type="submit"]:hover:not(:disabled),
.auth-main input[type="submit"]:hover:not(:disabled) {
    background: var(--sb-grad-primary-hover);
    box-shadow: 0 4px 10px rgba(15, 118, 110, 0.35);
    transform: translateY(-1px);
}

.auth-main .btn-primary:active:not(:disabled),
.auth-main button[type="submit"]:active:not(:disabled),
.auth-main input[type="submit"]:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(15, 118, 110, 0.25);
}

.auth-main .btn-primary:focus-visible,
.auth-main button[type="submit"]:focus-visible,
.auth-main input[type="submit"]:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.4);
}

.auth-main .btn-primary:disabled,
.auth-main button[type="submit"]:disabled,
.auth-main input[type="submit"]:disabled {
    background: var(--sb-text-soft);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Loading spinner */
.auth-main .btn-primary.is-loading,
.auth-main button[type="submit"].is-loading,
.auth-main input[type="submit"].is-loading {
    color: transparent !important;
    pointer-events: none;
}

.auth-main .btn-primary.is-loading::after,
.auth-main button[type="submit"].is-loading::after,
.auth-main input[type="submit"].is-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    margin-left: -9px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: sb-spin 0.7s linear infinite;
}

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

/* Outline/ghost button (like landing page) */
.auth-main .btn-secondary,
.auth-main .btn-outline {
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 600;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    color: var(--sb-text);
    background: #fff;
    border: 1px solid var(--sb-border);
    border-radius: var(--sb-radius);
    cursor: pointer;
    transition: all var(--sb-transition);
    line-height: 1.4;
}

.auth-main .btn-secondary:hover,
.auth-main .btn-outline:hover {
    border-color: var(--sb-primary);
    color: var(--sb-primary);
    background: var(--sb-primary-50);
}

/* ===========================================
   VALIDATION STATES
   =========================================== */
.auth-main .is-invalid,
.auth-main input.is-invalid,
.auth-main select.is-invalid,
.auth-main textarea.is-invalid {
    border-color: var(--sb-error);
    background-color: var(--sb-bg-error);
    padding-right: 42px;
}

.auth-main input.is-invalid:focus,
.auth-main select.is-invalid:focus,
.auth-main textarea.is-invalid:focus {
    box-shadow: var(--sb-shadow-error);
}

.auth-main .is-valid,
.auth-main input.is-valid,
.auth-main select.is-valid,
.auth-main textarea.is-valid {
    border-color: var(--sb-success);
    padding-right: 42px;
}

.auth-main .invalid-feedback,
.auth-main .text-danger,
.auth-main .field-error {
    display: none;
    margin-top: 6px;
    font-size: 13px;
    color: var(--sb-error);
    line-height: 1.4;
    font-weight: 500;
}

.auth-main .is-invalid ~ .invalid-feedback,
.auth-main .has-error .invalid-feedback,
.auth-main .has-error .text-danger,
.auth-main .has-error .field-error {
    display: flex;
    align-items: center;
    gap: 6px;
}

.auth-main .has-error label {
    color: var(--sb-error);
}

.auth-main .valid-feedback {
    display: none;
    margin-top: 6px;
    font-size: 13px;
    color: var(--sb-success);
    line-height: 1.4;
}

.auth-main .is-valid ~ .valid-feedback {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ===========================================
   ALERT / FLASH MESSAGES
   =========================================== */
.auth-main .alert,
.auth-main .callout {
    padding: 14px 16px;
    margin-bottom: 18px;
    border-radius: var(--sb-radius);
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid transparent;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.auth-main .alert-danger,
.auth-main .alert-error {
    background-color: var(--sb-error-50);
    border-color: var(--sb-error-light);
    color: var(--sb-error);
}

.auth-main .alert-success {
    background-color: var(--sb-success-50);
    border-color: var(--sb-success-light);
    color: var(--sb-success);
}

.auth-main .alert-warning {
    background-color: var(--sb-warning-light);
    border-color: #FDE68A;
    color: var(--sb-warning);
}

.auth-main .alert-info {
    background-color: var(--sb-primary-50);
    border-color: var(--sb-primary-100);
    color: var(--sb-primary-700);
}

.auth-main .alert strong {
    font-weight: 700;
    display: block;
    margin-bottom: 2px;
}

/* ===========================================
   CHECKBOX & RADIO
   =========================================== */
.auth-main input[type="checkbox"],
.auth-main input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--sb-primary);
    cursor: pointer;
    margin: 0;
    vertical-align: middle;
    transition: all var(--sb-transition);
}

.auth-main input[type="checkbox"]:focus,
.auth-main input[type="radio"]:focus {
    outline: 2px solid var(--sb-primary);
    outline-offset: 2px;
}

.auth-main .checkbox,
.auth-main .form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--sb-text);
    cursor: pointer;
    user-select: none;
}

.auth-main .checkbox label,
.auth-main .form-check label {
    margin: 0;
    font-weight: 400;
    cursor: pointer;
}

/* ===========================================
   LINKS - landing page teal
   =========================================== */
.auth-main a:not(.btn):not(.auth-back):not(.auth-brand) {
    color: var(--sb-primary-700);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--sb-transition);
}

.auth-main a:not(.btn):not(.auth-back):not(.auth-brand):hover {
    color: var(--sb-primary);
    text-decoration: underline;
}

.auth-main a:not(.btn):not(.auth-back):not(.auth-brand):focus-visible {
    outline: 2px solid var(--sb-primary);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ===========================================
   PASSWORD VISIBILITY TOGGLE
   =========================================== */
.auth-main .password-wrapper {
    position: relative;
}

.auth-main .password-wrapper input[type="password"],
.auth-main .password-wrapper input[type="text"] {
    padding-right: 44px;
}

.auth-main .password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--sb-text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--sb-radius);
    transition: color var(--sb-transition), background var(--sb-transition);
}

.auth-main .password-toggle:hover {
    color: var(--sb-primary);
    background: var(--sb-primary-50);
}

.auth-main .password-toggle:focus-visible {
    outline: 2px solid var(--sb-primary);
    outline-offset: 2px;
}

.auth-main .password-toggle svg {
    width: 18px;
    height: 18px;
}

/* ===========================================
   PASSWORD STRENGTH METER
   =========================================== */
.auth-main .password-strength {
    margin-top: 8px;
}

.auth-main .password-strength-bar {
    height: 4px;
    background: var(--sb-border);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.auth-main .password-strength-fill {
    height: 100%;
    width: 0%;
    transition: width var(--sb-transition), background-color var(--sb-transition);
    background: var(--sb-error);
}

.auth-main .password-strength.weak .password-strength-fill {
    width: 25%;
    background: var(--sb-error);
}

.auth-main .password-strength.fair .password-strength-fill {
    width: 50%;
    background: var(--sb-warning);
}

.auth-main .password-strength.good .password-strength-fill {
    width: 75%;
    background: #3B82F6;
}

.auth-main .password-strength.strong .password-strength-fill {
    width: 100%;
    background: var(--sb-success);
}

.auth-main .password-strength-text {
    font-size: 12px;
    color: var(--sb-text-muted);
    margin-top: 4px;
    display: flex;
    justify-content: space-between;
    font-weight: 500;
}

/* ===========================================
   CARD STYLING - landing page style
   =========================================== */
.auth-main .auth-card {
    background: #fff;
    border: 1px solid var(--sb-border);
    border-radius: var(--sb-radius-lg);
    box-shadow: var(--sb-shadow-md);
    padding: 40px;
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
}

.auth-main .auth-card-header {
    background: var(--sb-grad-primary);
    color: #fff;
    padding: 28px 32px;
    border-radius: var(--sb-radius-lg) var(--sb-radius-lg) 0 0;
    margin: -40px -40px 28px;
}

.auth-main .auth-card-header h1,
.auth-main .auth-card-header h2 {
    color: #fff !important;
    margin: 0;
}

.auth-main .auth-card-header p {
    color: rgba(255, 255, 255, 0.85) !important;
    margin: 4px 0 0;
}

/* ===========================================
   BACK LINK - landing page style
   =========================================== */
.auth-back {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    color: var(--sb-text-muted) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
}

.auth-back:hover {
    color: var(--sb-primary-700) !important;
    text-decoration: none !important;
}

/* ===========================================
   TRUST SECTION - landing page avatars
   =========================================== */
.auth-trust {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.auth-trust-text {
    color: var(--sb-text) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
}

.auth-trust-text strong {
    color: var(--sb-primary-700) !important;
}

.auth-trust-sub {
    color: var(--sb-text-muted) !important;
    font-size: 13px !important;
}

.auth-trust-help {
    color: var(--sb-text-muted) !important;
    font-size: 13px !important;
    background: #fff !important;
    border: 1px solid var(--sb-border) !important;
    border-radius: var(--sb-radius-pill) !important;
    padding: 8px 14px !important;
}

.auth-trust-help:hover {
    border-color: var(--sb-primary) !important;
    color: var(--sb-primary-700) !important;
}

/* ===========================================
   SHAKE / TOAST ANIMATIONS
   =========================================== */
.auth-main .toast,
.auth-main .toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 360px;
    padding: 14px 16px;
    background: #fff;
    border-radius: var(--sb-radius-md);
    box-shadow: var(--sb-shadow-lg);
    border-left: 4px solid var(--sb-primary);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    animation: sb-slide-in 0.3s ease-out;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.auth-main .toast-success { border-left-color: var(--sb-success); }
.auth-main .toast-error { border-left-color: var(--sb-error); }
.auth-main .toast-warning { border-left-color: var(--sb-warning); }
.auth-main .toast-info { border-left-color: var(--sb-primary); }

@keyframes sb-slide-in {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes sb-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

.auth-main .shake {
    animation: sb-shake 0.3s ease-out;
}

/* ===========================================
   ACCESSIBILITY - FOCUS
   =========================================== */
.auth-main *:focus-visible {
    outline: 2px solid var(--sb-primary);
    outline-offset: 2px;
}

.auth-skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    background: var(--sb-primary);
    color: #fff;
    padding: 10px 16px;
    border-radius: var(--sb-radius);
    text-decoration: none;
    font-weight: 600;
    z-index: 10000;
    transition: top var(--sb-transition);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.auth-skip-link:focus {
    top: 16px;
    color: #fff;
    text-decoration: none;
}

/* ===========================================
   MOBILE
   =========================================== */
@media (max-width: 640px) {
    .auth-main input[type="text"],
    .auth-main input[type="email"],
    .auth-main input[type="password"],
    .auth-main input[type="tel"],
    .auth-main input[type="number"],
    .auth-main select,
    .auth-main textarea {
        font-size: 16px;
        padding: 12px;
    }

    .auth-main .btn-primary,
    .auth-main button[type="submit"] {
        padding: 14px 20px;
        min-height: 48px;
    }
}

/* ===========================================
   REDUCED MOTION
   =========================================== */
@media (prefers-reduced-motion: reduce) {
    .auth-main *,
    .auth-main *::before,
    .auth-main *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===========================================
   PRINT
   =========================================== */
@media print {
    .auth-main .btn-primary,
    .auth-main .password-toggle,
    .auth-main .toast {
        display: none !important;
    }
}

/* ==== [sb-auth-fixes.css] Auth Page-Specific Fixes (one-line label/link, single eye icon) ==== */
/* ============================================
   SmartBiashara Auth Fix - One-line password + no double eye icon
   ============================================ */

/* Make .sb-field-row put label and link on one line */
.auth-main .sb-field-row,
.auth-main .field-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 6px !important;
    gap: 12px;
}

.auth-main .sb-field-row label,
.auth-main .field-row label {
    margin-bottom: 0 !important;
}

.auth-main .sb-field-row a,
.auth-main .field-row a {
    font-size: 13px !important;
    color: var(--sb-primary-700) !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: color 150ms;
}

.auth-main .sb-field-row a:hover,
.auth-main .field-row a:hover {
    color: var(--sb-primary) !important;
    text-decoration: underline !important;
}

/* HIDE our duplicate password toggle wrapper if original toggle exists */
.auth-main .sb-login-pw-wrap .password-wrapper {
    display: contents !important;
}

.auth-main .sb-login-pw-wrap .password-wrapper .password-toggle {
    display: none !important;
}

/* Make sure only the original toggle is visible */
.auth-main .sb-login-pw-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-main .sb-login-pw-wrap input[type="password"],
.auth-main .sb-login-pw-wrap input[type="text"] {
    padding-right: 44px;
}

.auth-main .sb-login-pw-wrap .sb-login-pw-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--sb-text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--sb-radius);
    transition: color 150ms, background 150ms;
}

.auth-main .sb-login-pw-wrap .sb-login-pw-toggle:hover {
    color: var(--sb-primary);
    background: var(--sb-primary-50);
}

.auth-main .sb-login-pw-wrap .sb-login-pw-toggle:focus-visible {
    outline: 2px solid var(--sb-primary);
    outline-offset: 2px;
}

.auth-main .sb-login-pw-wrap .sb-login-pw-toggle svg {
    width: 20px;
    height: 20px;
}

/* Compact spacing - remove extra space between label and input */
.auth-main .sb-field {
    margin-bottom: 16px !important;
}

.auth-main .sb-field label {
    margin-bottom: 6px !important;
    display: block;
}

.auth-main .sb-field .sb-input {
    margin-top: 0 !important;
}

/* ==== [sb-auth-warnings.css] Auth Advisory Warnings (non-blocking) ==== */
/* ============================================
   SmartBiashara Auth Warning Styles
   Advisory-only validation (yellow, non-blocking)
   ============================================ */

.auth-main .is-warning,
.auth-main input.is-warning,
.auth-main select.is-warning,
.auth-main textarea.is-warning {
    border-color: #F59E0B; /* amber-500 */
    background-color: #FFFBEB; /* amber-50 */
}

.auth-main input.is-warning:focus,
.auth-main select.is-warning:focus,
.auth-main textarea.is-warning:focus {
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.auth-main .field-warning {
    display: none;
    margin-top: 6px;
    font-size: 13px;
    color: #B45309; /* amber-700 */
    line-height: 1.4;
    font-weight: 500;
    align-items: center;
    gap: 6px;
}

.auth-main .is-warning ~ .field-warning {
    display: flex;
    align-items: center;
    gap: 6px;
}

.auth-main .field-warning::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B45309' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'/%3E%3Cline x1='12' y1='9' x2='12' y2='13'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

/* Login page — keep clean, no validation styling at all */
body.login-page .auth-main input,
body.login-page .auth-main select {
    border-color: var(--sb-border);
    background-color: #fff;
}

body.login-page .auth-main input:focus,
body.login-page .auth-main select:focus {
    border-color: var(--sb-primary);
    box-shadow: var(--sb-shadow-focus);
}

/* ==== [sb-auth-eye-enhance.css] Enhanced Eye Toggle Visibility ==== */
/* ============================================
   SmartBiashara Auth - Enhanced Eye Icon Visibility
   Make the eye toggle more obvious and clickable
   ============================================ */

/* Make ALL password toggle buttons MORE visible and clickable */
.auth-main .password-toggle,
.auth-main .sb-login-pw-toggle {
    /* Larger touch target */
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    padding: 0 !important;

    /* Better positioning */
    position: absolute !important;
    right: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;

    /* Visual styling */
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid var(--sb-border) !important;
    border-radius: 8px !important;
    color: var(--sb-text-muted) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    /* Smooth transitions */
    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

.auth-main .password-toggle:hover,
.auth-main .sb-login-pw-toggle:hover {
    color: var(--sb-primary) !important;
    border-color: var(--sb-primary) !important;
    background: var(--sb-primary-50) !important;
    transform: translateY(-50%) scale(1.05) !important;
    box-shadow: 0 2px 6px rgba(13, 148, 136, 0.15) !important;
}

.auth-main .password-toggle:active,
.auth-main .sb-login-pw-toggle:active {
    transform: translateY(-50%) scale(0.95) !important;
}

.auth-main .password-toggle:focus-visible,
.auth-main .sb-login-pw-toggle:focus-visible {
    outline: 2px solid var(--sb-primary) !important;
    outline-offset: 2px !important;
}

.auth-main .password-toggle svg,
.auth-main .sb-login-pw-toggle svg {
    width: 18px !important;
    height: 18px !important;
    stroke-width: 2.2 !important;
}

/* When password is visible, change the icon color to show "active" state */
.auth-main .password-toggle.is-visible,
.auth-main .sb-login-pw-toggle.is-visible {
    color: var(--sb-primary) !important;
    background: var(--sb-primary-50) !important;
    border-color: var(--sb-primary) !important;
}

/* Add padding to the password input so text doesn't overlap with the eye button */
.auth-main .sb-login-pw-wrap input[type="password"],
.auth-main .sb-login-pw-wrap input[type="text"],
.auth-main .password-wrapper input[type="password"],
.auth-main .password-wrapper input[type="text"] {
    padding-right: 52px !important;
}

/* Ensure wrapper has proper positioning context */
.auth-main .sb-login-pw-wrap,
.auth-main .password-wrapper {
    position: relative !important;
}

/* ==== [sb-auth-layout-fix.css] Layout Fix ==== */
/* ============================================
   SmartBiashara Auth - Layout Fix
   Center trust section + remove horizontal overflow
   ============================================ */

/* Prevent any horizontal scrolling on auth pages */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

body {
    position: relative !important;
}

/* Ensure main container doesn't cause overflow */
.auth-main,
main.auth-main {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* CENTER THE TRUST SECTION relative to the form/card */
.auth-trust {
    /* Reset positioning */
    margin-left: auto !important;
    margin-right: auto !important;

    /* Center the content within itself */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;

    /* Constrain width to match the form */
    max-width: 920px !important;
    width: 100% !important;

    /* Padding */
    padding: 24px 20px !important;

    /* Ensure box-sizing */
    box-sizing: border-box !important;
}

/* The trust section should match the form container width */
.reg-wrap .auth-trust,
.reg-card + .auth-trust,
form + .auth-trust,
main .auth-trust {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Avatar row centered */
.auth-trust-avatars {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 12px !important;
}

/* Trust text centered */
.auth-trust-text,
.auth-trust-sub {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Help link centered */
.auth-trust-help {
    margin: 8px auto 0 !important;
    display: inline-flex !important;
}

/* Form wrapper - ensure no overflow */
.reg-wrap {
    max-width: 920px !important;
    margin: 0 auto !important;
    padding: 16px 20px 32px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Card inside form - ensure no overflow */
.reg-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* prevent content from breaking out */
}

/* Form rows - prevent overflow */
.reg-section .reg-grid {
    max-width: 100% !important;
}

/* Form controls - prevent overflow */
.reg-card input,
.reg-card select,
.reg-card textarea {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Header banner inside card - prevent overflow */
.reg-header {
    overflow: hidden !important;
    word-wrap: break-word !important;
}

/* Body padding */
.reg-body {
    overflow-x: hidden !important;
}

/* Section transitions */
.reg-section {
    overflow: hidden !important;
}

/* Ensure flex rows don't overflow */
.reg-row,
.reg-grid {
    min-width: 0 !important;
    overflow: hidden !important;
}

/* Fix any flex children overflow */
.reg-row > *,
.reg-grid > * {
    min-width: 0 !important;
    max-width: 100% !important;
    flex-shrink: 1 !important;
    box-sizing: border-box !important;
}

/* ==== [sb-auth-subtitle.css] Subtitle Color Fix ==== */
/* ============================================
   SmartBiashara Auth - Header Subtitle Color Fix
   Make "Register and Get Started in minutes" white/pale yellow
   ============================================ */

.reg-header {
    /* Force subtitle color to white */
}

.reg-header h1 {
    color: #FFFFFF !important;
}

.reg-header p,
.reg-header .subtitle,
.reg-header .reg-subtitle {
    /* Pale yellow / cream color for subtitle */
    color: #FEF3C7 !important; /* pale yellow */
    /* Alternative: rgba(255, 255, 255, 0.85) for off-white */
    font-weight: 500 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

/* Make sure all text in the reg-header banner is light */
.reg-header,
.reg-header * {
    /* No dark text anywhere in the header */
}

/* Ensure background is the teal gradient */
.reg-header {
    background: linear-gradient(135deg, #0D9488 0%, #14B8A6 100%) !important;
    color: #FFFFFF !important;
    padding: 32px 24px !important;
    text-align: center !important;
    border-radius: 18px 18px 0 0 !important;
}

.reg-header h1,
.reg-header h2,
.reg-header h3 {
    color: #FFFFFF !important;
    margin: 0 !important;
}

.reg-header p {
    color: #FEF3C7 !important; /* pale yellow */
    margin: 8px 0 0 0 !important;
}
