/* ==========================================================================
   TailorBazar Premium Mobile Login Layout
   - Full uncropped graphic banner
   - Natural section flow (no huge empty gaps)
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
}

button, input[type="button"], input[type="submit"], input[type="reset"], .btn, a, [role="button"] {
    -webkit-tap-highlight-color: transparent !important;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
    -webkit-touch-callout: none;
}

button:focus, button:focus-visible, button:active,
input[type="button"]:focus, input[type="button"]:active,
input[type="submit"]:focus, input[type="submit"]:active,
.btn:focus, .btn:focus-visible, .btn:active,
a:focus, a:focus-visible, a:active,
[role="button"]:focus, [role="button"]:active {
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
}

html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    min-height: 100% !important;
    background: #ffffff !important;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

main {
    padding: 0 !important;
    margin: 0 !important;
}

.tb-login-wrapper {
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: #ffffff;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
}

.tb-login-card {
    background: #ffffff;
    width: 100%;
    max-width: 440px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    margin: 0 auto;
    position: relative;
    padding: 0 0 2rem 0 !important;
}

@media (min-width: 640px) {
    .tb-login-wrapper {
        align-items: center;
        background: #f1f5f9;
        padding: 2rem 0 !important;
    }
    .tb-login-card {
        min-height: auto;
        border-radius: 1.75rem;
        box-shadow: 0 15px 40px rgba(5, 62, 153, 0.08);
        border: 1px solid rgba(226, 232, 240, 0.9);
        overflow: hidden;
    }
}

/* Top Hero Graphic Banner Container */
.tb-hero-banner-wrap {
    width: 100%;
    flex: 0 0 auto;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff;
    line-height: 0;
}

.tb-hero-banner-img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    margin: 0 !important;
    padding: 0 !important;
}

/* ==========================================================================
   Everything You Need At Your Fingertips Section
   ========================================================================== */
.tb-features-section {
    flex: 0 0 auto;
    padding: 1.25rem 1.25rem 0.75rem 1.25rem;
    background: #ffffff;
}

.tb-features-title {
    text-align: center;
    margin-bottom: 1rem;
}

.tb-features-title h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 0.15rem 0;
    line-height: 1.2;
}

.tb-features-title h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #053E99;
    margin: 0;
    line-height: 1.2;
}

.tb-title-underline {
    display: flex;
    justify-content: center;
    gap: 3px;
    margin-top: 0.35rem;
}

.tb-line-blue {
    width: 16px;
    height: 3px;
    background: #053E99;
    border-radius: 2px;
}

.tb-line-red {
    width: 16px;
    height: 3px;
    background: #D91B24;
    border-radius: 2px;
}

/* 4 Service Cards Grid */
.tb-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.tb-service-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.9rem;
    padding: 0.65rem 0.2rem 0.55rem 0.2rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(5, 62, 153, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tb-service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(5, 62, 153, 0.1);
}

.tb-service-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    margin-bottom: 0.35rem;
}

.tb-service-name {
    font-size: 0.82rem;
    font-weight: 800;
    color: #053E99;
    line-height: 1.1;
}

.tb-service-sub {
    font-size: 0.68rem;
    font-weight: 500;
    color: #64748b;
    margin-top: 0.1rem;
}

/* Bottom 4 Feature Strip */
.tb-feature-strip {
    background: #f0f6ff;
    border-radius: 0.85rem;
    padding: 0.65rem 0.4rem;
    display: flex;
    align-items: center;
    justify-content: space-around;
    border: 1px solid #e0ecfb;
}

.tb-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    gap: 0.25rem;
}

.tb-feat-icon {
    font-size: 1.05rem;
    color: #053E99;
}

.tb-feat-text {
    font-size: 0.66rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.15;
}

.tb-feature-divider {
    width: 1px;
    height: 24px;
    background: #cbd5e1;
    flex-shrink: 0;
}

/* Bottom Form Body Section */
.tb-form-body {
    flex: 0 0 auto;
    padding: 1.25rem 1.5rem 1.5rem 1.5rem;
    background: #ffffff;
}

.tb-welcome-header {
    text-align: center;
    margin-top: 0.25rem;
    margin-bottom: 1.25rem;
}

.tb-welcome-header h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #053E99;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.tb-text-red {
    color: #D91B24;
}

.tb-text-blue {
    color: #053E99;
}

.tb-brand-text {
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: 1.05rem;
}

.tb-welcome-header p {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
    font-weight: 500;
}

/* Input Field Container */
.tb-input-group {
    margin-bottom: 1.25rem;
}

.tb-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.tb-input-icon {
    position: absolute;
    left: 1.15rem;
    color: #94a3b8;
    font-size: 1.15rem;
    pointer-events: none;
    z-index: 3;
}

.tb-form-input {
    width: 100%;
    height: 52px;
    padding: 0.75rem 1rem 0.75rem 3rem !important;
    font-size: 1.02rem;
    font-weight: 600;
    color: #1e293b;
    background: #ffffff;
    border: 1.5px solid #d1d5db;
    border-radius: 0.85rem;
    outline: none;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.tb-form-input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.tb-form-input:focus {
    border-color: #053E99;
    box-shadow: 0 0 0 3.5px rgba(5, 62, 153, 0.12);
}

/* Primary Action Button (Navy Blue) */
.tb-btn-primary {
    width: 100%;
    height: 52px;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #ffffff;
    background: #053E99;
    border: none;
    border-radius: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.25s ease;
    box-shadow: 0 8px 18px -3px rgba(5, 62, 153, 0.35);
    text-transform: uppercase;
}

.tb-btn-primary:hover:not(:disabled) {
    background: #04327c;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px -3px rgba(5, 62, 153, 0.45);
}

.tb-btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    box-shadow: none;
}

/* OTP Boxes Styling */
.tb-otp-label {
    display: block;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.6rem;
}

.tb-otp-boxes-wrapper {
    display: flex;
    gap: 0.55rem;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.otp-box-input {
    width: 2.8rem;
    height: 3.2rem;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: #053E99;
    background: #ffffff;
    border: 2px solid #cbd5e1;
    border-radius: 0.75rem;
    outline: none;
}

.tb-validation-error {
    color: #D91B24;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.35rem;
}

.tb-inline-alert-success {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    padding: 0.65rem 0.9rem;
    border-radius: 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.85rem;
}

.tb-resend-wrapper {
    text-align: center;
    margin-bottom: 0.95rem;
}

.tb-btn-resend {
    background: none;
    border: none;
    color: #053E99;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
}

.tb-timer-badge {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.25rem;
}

.tb-edit-phone-btn {
    color: #053E99;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

/* Footer Link */
.tb-auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.92rem;
    color: #475569;
    font-weight: 500;
}

.tb-footer-link {
    color: #053E99;
    font-weight: 700;
    text-decoration: none;
}

.tb-footer-prompt {
    margin: 0 0 0.5rem 0;
}

.tb-guest-explore {
    margin-top: 0.6rem;
    padding-top: 0.6rem;
    border-top: 1.5px dashed #e2e8f0;
}

.tb-guest-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #053E99;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    padding: 0.45rem 1.1rem;
    border-radius: 2rem;
    background: rgba(5, 62, 153, 0.06);
    border: 1px solid rgba(5, 62, 153, 0.15);
    transition: all 0.25s ease;
}

.tb-guest-link:hover {
    background: #053E99;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(5, 62, 153, 0.25);
}

/* Step Animations */
.auth-step-transition {
    animation: tbFadeIn 0.3s ease-in-out;
}

@keyframes tbFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Testing Phase Notice Banner
   ========================================================================== */
.tb-testing-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1.5px solid #f59e0b;
    border-radius: 0.85rem;
    padding: 0.9rem 1rem;
    margin: 0 0 1.25rem 0;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.12);
    position: relative;
    overflow: hidden;
}

.tb-testing-notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #f59e0b, #d97706);
    border-radius: 0.85rem 0 0 0.85rem;
}

.tb-testing-notice-icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    background: #f59e0b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.85rem;
    margin-top: 0.05rem;
}

.tb-testing-notice-body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
}

.tb-testing-notice-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #92400e;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.tb-testing-notice-text {
    font-size: 0.8rem;
    color: #78350f;
    line-height: 1.45;
    margin: 0;
}

.tb-testing-otp-code {
    display: inline-block;
    background: #d97706;
    color: #fff;
    padding: 0.1rem 0.5rem;
    border-radius: 0.35rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    vertical-align: middle;
}

.tb-testing-notice-thanks {
    font-size: 0.75rem;
    color: #92400e;
    font-weight: 500;
}

@media (max-width: 400px) {
    .tb-testing-notice {
        padding: 0.75rem 0.85rem;
        gap: 0.6rem;
    }
    .tb-testing-notice-icon {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.75rem;
    }
    .tb-testing-otp-code {
        font-size: 0.82rem;
        letter-spacing: 0.15em;
    }
}
