/* TrustBhai Auth Pages — Login / Signup */
body.auth-page {
    background: #f0f2f5 !important;
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    overflow-x: hidden;
}
body.auth-page .main-content,
body.auth-page .container-fluid,
body.auth-page .row {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
}
body.auth-page .left-sidebar {
    display: none !important;
}
body.auth-page .main-content {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
}
body.auth-page #page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 10% 20%, rgba(24, 119, 242, .12) 0%, transparent 45%),
        radial-gradient(circle at 90% 80%, rgba(219, 39, 119, .1) 0%, transparent 40%),
        #f0f2f5;
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px 32px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .08), 0 2px 8px rgba(0, 0, 0, .04);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, .04);
    animation: authSlideUp .5s ease-out;
}
@keyframes authSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-hero {
    background: linear-gradient(135deg, #1877f2 0%, #7c3aed 55%, #db2777 100%);
    padding: 28px 24px 24px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.auth-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255,255,255,.18) 0%, transparent 55%);
    pointer-events: none;
}
.auth-hero__logo {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255,255,255,.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.auth-hero__logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
}
.auth-hero__title {
    font-size: 1.55rem;
    font-weight: 800;
    margin: 0 0 6px;
    position: relative;
    line-height: 1.25;
}
.auth-hero__subtitle {
    font-size: .9rem;
    opacity: .92;
    margin: 0;
    position: relative;
    font-weight: 500;
}
.auth-hero__tagline {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.16);
    font-size: .75rem;
    font-weight: 600;
    position: relative;
}
.auth-online {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    font-size: .78rem;
    font-weight: 600;
    position: relative;
}
.auth-online__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, .35);
    animation: authPulse 2s infinite;
}
@keyframes authPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .55; }
}

.auth-body {
    padding: 24px 22px 26px;
}

.auth-alert {
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: .88rem;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.auth-alert--error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}
.auth-alert--success {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.auth-toggle {
    display: flex;
    gap: 6px;
    padding: 5px;
    background: #f0f2f5;
    border-radius: 14px;
    margin-bottom: 20px;
}
.auth-toggle__btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 11px 12px;
    border-radius: 10px;
    font-size: .85rem;
    font-weight: 700;
    color: #65676b;
    cursor: pointer;
    transition: all .2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.auth-toggle__btn.active {
    background: linear-gradient(135deg, #1877f2, #7c3aed);
    color: #fff;
    box-shadow: 0 4px 12px rgba(24, 119, 242, .28);
}

.auth-label {
    display: block;
    font-size: .82rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 8px;
}
.auth-label i {
    color: #1877f2;
    margin-right: 6px;
}

.auth-phone-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.auth-country-wrap {
    flex: 0 0 118px;
}

/* Combined phone input — country code + number in one row */
.auth-phone-combo {
    display: flex;
    align-items: stretch;
    width: 100%;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    background: #f9fafb;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.auth-phone-combo:focus-within {
    border-color: #1877f2;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(24, 119, 242, .15);
}
.auth-phone-code {
    flex: 0 0 auto;
    width: auto;
    min-width: 102px;
    max-width: 118px;
    height: 52px;
    padding: 0 28px 0 10px;
    border: none;
    border-right: 1.5px solid #e5e7eb;
    border-radius: 0;
    background: #f0f2f5;
    font-size: .88rem;
    font-weight: 700;
    color: #1877f2;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2365676b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 8px center;
    background-repeat: no-repeat;
    background-size: 14px;
}
.auth-phone-number {
    flex: 1;
    min-width: 0;
    height: 52px;
    padding: 0 14px;
    border: none;
    border-radius: 0;
    background: transparent;
    font-size: 16px;
    font-weight: 600;
    color: #1c1e21;
    letter-spacing: .5px;
    outline: none;
}
.auth-phone-number::placeholder {
    color: #9ca3af;
    font-weight: 500;
}
.auth-hint--block {
    margin-top: 8px;
    margin-bottom: 4px;
    line-height: 1.4;
}
.auth-country-name {
    display: none;
}

.auth-field,
.auth-select {
    width: 100%;
    height: 50px;
    padding: 0 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    font-size: .95rem;
    font-weight: 600;
    color: #1c1e21;
    background: #f9fafb;
    transition: border-color .2s, box-shadow .2s, background .2s;
    outline: none;
}
.auth-select {
    padding-right: 8px;
    text-align: center;
    cursor: pointer;
}
.auth-field:focus,
.auth-select:focus {
    border-color: #1877f2;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(24, 119, 242, .15);
}
.auth-field::placeholder {
    color: #9ca3af;
    font-weight: 500;
}
.auth-country-name {
    margin-top: 8px;
    font-size: .75rem;
    font-weight: 600;
    color: #65676b;
    text-align: center;
    padding: 6px 8px;
    background: #f0f2f5;
    border-radius: 8px;
}
.auth-hint {
    display: block;
    margin-top: 6px;
    font-size: .75rem;
    color: #65676b;
    font-weight: 500;
}
.auth-hint i { color: #1877f2; margin-right: 4px; }

.auth-input-wrap {
    position: relative;
    margin-bottom: 16px;
}
.auth-input-wrap .auth-field {
    padding-right: 44px;
}
.auth-input-wrap .auth-field-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1rem;
    pointer-events: none;
}
.auth-input-wrap .auth-pw-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #65676b;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    line-height: 1;
}
.auth-input-wrap .auth-pw-toggle:hover {
    color: #1877f2;
    background: #f0f2f5;
}

.auth-captcha {
    margin-bottom: 18px;
    padding: 14px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    display: flex;
    justify-content: center;
}

.auth-submit {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #1877f2 0%, #7c3aed 100%);
    color: #fff;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 18px rgba(24, 119, 242, .32);
    transition: transform .15s, box-shadow .15s;
}
.auth-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(24, 119, 242, .38);
}
.auth-submit:disabled,
.auth-submit.loading {
    opacity: .75;
    cursor: not-allowed;
    transform: none;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 18px;
    color: #9ca3af;
    font-size: .78rem;
    font-weight: 600;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.auth-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.auth-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 10px;
    border-radius: 12px;
    background: #f0f2f5;
    color: #1877f2;
    text-decoration: none;
    font-size: .78rem;
    font-weight: 700;
    text-align: center;
    transition: background .2s, color .2s;
    line-height: 1.3;
}
.auth-link:hover {
    background: rgba(24, 119, 242, .1);
    color: #1565d8;
}

.auth-back-home {
    display: block;
    text-align: center;
    margin-top: 18px;
    font-size: .82rem;
    font-weight: 600;
    color: #65676b;
    text-decoration: none;
}
.auth-back-home:hover { color: #1877f2; }

.auth-whatsapp {
    width: 100%;
    height: 52px;
    margin-top: 4px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #fff;
    font-size: .92rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 18px rgba(37, 211, 102, .28);
    transition: transform .15s, box-shadow .15s;
}
.auth-whatsapp:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(37, 211, 102, .34);
}

body.auth-page #footer-bar,
body.auth-page .footer.card-style {
    display: none !important;
}

.auth-note {
    background: #f0f2f5;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: .82rem;
    color: #65676b;
    line-height: 1.5;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}
.auth-note i { color: #7c3aed; margin-top: 2px; }
.auth-note strong { color: #1877f2; }
.auth-optional {
    font-weight: 500;
    color: #9ca3af;
    font-size: .75rem;
}
.auth-body .auth-field,
.auth-body .auth-select {
    margin-bottom: 0;
}
.auth-form-group {
    margin-bottom: 16px;
}

@media (max-width: 480px) {
    .auth-shell { padding: 16px 12px 24px; }
    .auth-body { padding: 20px 16px 22px; }
    .auth-phone-code {
        min-width: 96px;
        max-width: 108px;
        font-size: .82rem;
        padding-left: 8px;
    }
    .auth-phone-number {
        font-size: 16px;
        padding: 0 12px;
    }
    .auth-links { grid-template-columns: 1fr; }
    .auth-hero__title { font-size: 1.35rem; }
}
