/* ── DataTR Login Page — dth- prefix (light) ──────────────────── */

/* Reset WHMCS container constraints */
#main-body { background: #ffffff !important; }
#main-body > .container {
    max-width: 100% !important;
    padding: 0 !important;
}
#main-body > .container > .row {
    margin: 0 !important;
}
#main-body > .container > .row > .primary-content {
    padding: 0 !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    width: 100% !important;
}

/* ── Outer wrapper ── */
.dth-login-page {
    background: #ffffff;
    padding: 2.5rem 1rem;
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Split Card ── */
.dth-login-card {
    display: flex;
    max-width: 1253px;
    width: 100%;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

/* ── Left: Hero/Brand ── */
.dth-login-hero {
    flex: 1;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 50%, #f0f9ff 100%);
    border-right: 1px solid #e2e8f0;
    min-width: 0;
}
.dth-hero-logo {
    width: 150px;
    height: auto;
    margin-bottom: 1.25rem;
}
.dth-hero-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    margin: 0 0 0.5rem;
    letter-spacing: -0.03em;
}
.dth-hero-title span {
    color: #2563eb;
}
.dth-hero-desc {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 1.5rem;
}

/* Features 2x2 grid */
.dth-hero-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.dth-hero-feat {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8125rem;
    color: #475569;
    background: #eef2ff;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #dbeafe;
}
.dth-hero-feat-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #dbeafe;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #2563eb;
    font-size: 13px;
}

/* ── Right: Form Area ── */
.dth-login-form-side {
    width: 440px;
    min-width: 440px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem;
    background: #ffffff;
}
.dth-login-form-inner {
    width: 100%;
}

/* ── Form Styles ── */
.dth-login-section-title {
    font-size: 1.375rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.2rem;
    letter-spacing: -0.02em;
}
.dth-login-section-desc {
    font-size: 0.8125rem;
    color: #64748b;
    margin: 0 0 1.25rem;
}
.dth-form-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin-bottom: 5px;
}
.dth-input-wrap {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
    margin-bottom: 14px;
}
.dth-input-wrap:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.dth-input-icon {
    padding: 0 12px;
    color: #94a3b8;
    font-size: 13px;
    flex-shrink: 0;
}
.dth-input-wrap input {
    flex: 1;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #1e293b !important;
    font-size: 0.875rem;
    padding: 11px 12px 11px 0;
    outline: none;
}
.dth-input-wrap input::placeholder {
    color: #94a3b8 !important;
}
.dth-input-wrap .dth-pw-toggle {
    background: none;
    border: none;
    color: #94a3b8;
    padding: 0 12px;
    cursor: pointer;
    transition: color 0.15s;
}
.dth-input-wrap .dth-pw-toggle:hover { color: #2563eb; }

.dth-forgot-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.dth-remember-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    color: #64748b;
    cursor: pointer;
}
.dth-remember-label input { accent-color: #2563eb; }
.dth-forgot-link {
    font-size: 0.75rem;
    color: #2563eb !important;
    font-weight: 600;
    text-decoration: none;
}
.dth-forgot-link:hover { opacity: 0.75; }

/* Submit */
.dth-login-btn {
    width: 100%;
    padding: 11px;
    font-size: 0.9375rem;
    font-weight: 700;
    border-radius: 10px;
    background: #2563eb !important;
    border: none !important;
    color: #fff !important;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(37,99,235,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.dth-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37,99,235,0.35);
    background: #1d4ed8 !important;
}
.dth-login-btn:active { transform: translateY(0); }
.dth-login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: 0 4px 14px rgba(37,99,235,0.15) !important;
}
.dth-login-btn .dth-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: dthSpin 0.6s linear infinite;
}
.dth-login-btn.loading .dth-spinner { display: inline-block; }
.dth-login-btn.loading .dth-btn-text { display: none; }
@keyframes dthSpin { to { transform: rotate(360deg); } }

/* Badges */
.dth-login-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 14px;
    font-size: 10px;
    color: #94a3b8;
}
.dth-login-badge { display: flex; align-items: center; gap: 4px; }
.dth-login-badge i { color: #22c55e; font-size: 10px; }

/* Divider */
.dth-login-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
}
.dth-login-divider::before,
.dth-login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

/* Register CTA */
.dth-register-box {
    background: linear-gradient(135deg, rgba(37,99,235,0.03) 0%, rgba(139,92,246,0.02) 100%);
    border: 1.5px solid #dbeafe;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}
.dth-register-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #dbeafe;
    color: #2563eb;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
}
.dth-register-badge i { font-size: 9px; }
.dth-register-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px;
}
.dth-register-desc {
    font-size: 0.75rem;
    color: #64748b;
    margin: 0 0 12px;
    line-height: 1.5;
}
.dth-register-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    font-size: 0.8125rem;
    font-weight: 700;
    border-radius: 10px;
    background: transparent;
    border: 2px solid #2563eb;
    color: #2563eb !important;
    text-decoration: none !important;
    transition: all 0.2s;
}
.dth-register-btn:hover {
    background: #2563eb;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(37,99,235,0.3);
}
.dth-register-btn i { font-size: 11px; }

/* ── Responsive ── */
@media (max-width: 991px) {
    .dth-login-card { flex-direction: column; }
    .dth-login-hero { display: none; }
    .dth-login-form-side { width: 100%; min-width: 0; padding: 2rem; }
}
@media (max-width: 575px) {
    .dth-login-page { padding: 1rem 0.75rem; }
    .dth-login-form-side { padding: 1.5rem; }
}

/* ── SMS Login Tab Styles ── */
.dth-login-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    border: 1.5px solid #e2e8f0;
}
.dth-login-tab {
    flex: 1;
    padding: 10px 16px;
    font-size: 0.8125rem;
    font-weight: 700;
    border: none;
    background: #f8fafc;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.dth-login-tab.active {
    background: #2563eb;
    color: #fff;
}
.dth-login-tab:not(.active):hover {
    background: #eef2ff;
    color: #2563eb;
}
.dth-login-panel { animation: dthFadeIn 0.3s ease; }
@keyframes dthFadeIn { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }

.dth-sms-step-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #eef2ff;
    color: #2563eb;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}
.dth-sms-step-desc {
    font-size: 0.8125rem;
    color: #475569;
    line-height: 1.5;
    margin: 0 0 16px;
}
.dth-sms-msg {
    margin-top: 12px;
    font-size: 0.8125rem;
    min-height: 20px;
}
.dth-sms-msg.ok { color: #16a34a; }
.dth-sms-msg.err { color: #dc2626; }

/* OTP Boxes */
.dth-otp-boxes {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 16px 0;
}
.dth-otp-box {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    color: #0f172a;
    outline: none;
    transition: all 0.2s;
}
.dth-otp-box:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
    background: #fff;
}
.dth-otp-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 0.8125rem;
    color: #64748b;
    margin-bottom: 12px;
}
.dth-sms-resend {
    background: none;
    border: none;
    color: #2563eb;
    font-weight: 600;
    font-size: 0.8125rem;
    cursor: pointer;
}
.dth-sms-resend:disabled {
    color: #94a3b8;
    cursor: not-allowed;
}
