/* ═══════════════════════════════════════════════
   TechSoft Global — WHMCS Login Page CSS
   File: templates/six/css/techsoft-login.css
   Upload this as a NEW file in templates/six/css/
═══════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body.ts-login-body { font-family: 'Inter', sans-serif; background: #f0f4ff; color: #0f172a; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ── TOP BAR ── */
.ts-topbar { background: #0f2280; padding: 7px 0; }
.ts-topbar-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.ts-topbar-left { display: flex; gap: 20px; }
.ts-topbar-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #93c5fd; }
.ts-topbar-item a { color: #93c5fd; }
.ts-topbar-item a:hover { color: #fff; }
.ts-topbar-right { font-size: 11px; color: #3b5fc0; }

/* ── HEADER ── */
.ts-header { background: #fff; border-bottom: 1px solid #e2e8f0; }
.ts-header-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; justify-content: space-between; }
.ts-logo { display: flex; align-items: center; gap: 10px; }
.ts-logo img { height: 38px; width: auto; }
.ts-logo-fallback { display: none; align-items: center; gap: 10px; }
.ts-logo-icon { width: 36px; height: 36px; border-radius: 9px; background: #1230a0; display: flex; align-items: center; justify-content: center; }
.ts-logo-name { font-size: 15px; font-weight: 600; color: #0f172a; }
.ts-logo-tag { font-size: 10px; color: #94a3b8; }
.ts-nav { display: flex; gap: 4px; }
.ts-nav-link { font-size: 13px; color: #475569; padding: 8px 14px; border-radius: 7px; transition: background 0.15s, color 0.15s; }
.ts-nav-link:hover { background: #f1f5f9; color: #0f172a; }
.ts-btn-cta { font-size: 13px; color: #fff; padding: 9px 18px; border-radius: 7px; background: #1230a0; font-weight: 500; transition: background 0.15s; }
.ts-btn-cta:hover { background: #0f2280; }

/* ── LOGIN WRAP ── */
.ts-login-wrap { flex: 1; display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 180px); }

/* ── LEFT PANEL ── */
.ts-login-left { background: #1230a0; padding: 48px 40px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.ts-login-left::before { content: ''; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%); top: -80px; right: -60px; pointer-events: none; }
.ts-login-left::after { content: ''; position: absolute; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%); bottom: -40px; left: -20px; pointer-events: none; }
.ts-login-eyebrow { font-size: 11px; font-weight: 600; color: #93c5fd; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; position: relative; z-index: 1; }
.ts-login-title { font-size: 28px; font-weight: 600; color: #fff; line-height: 1.35; margin-bottom: 12px; position: relative; z-index: 1; }
.ts-login-desc { font-size: 13px; color: #93c5fd; line-height: 1.7; margin-bottom: 32px; position: relative; z-index: 1; }
.ts-trust-list { display: flex; flex-direction: column; gap: 14px; position: relative; z-index: 1; }
.ts-trust-item { display: flex; align-items: center; gap: 12px; }
.ts-trust-icon { width: 34px; height: 34px; border-radius: 9px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ts-trust-title { font-size: 13px; color: #fff; font-weight: 500; }
.ts-trust-sub { font-size: 11px; color: #93c5fd; margin-top: 1px; }
.ts-login-stats { display: flex; gap: 24px; position: relative; z-index: 1; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); }
.ts-stat-num { font-size: 18px; font-weight: 600; color: #fff; }
.ts-stat-lbl { font-size: 11px; color: #3b5fc0; margin-top: 2px; }

/* ── RIGHT PANEL ── */
.ts-login-right { background: #fff; padding: 48px 40px; display: flex; align-items: center; justify-content: center; }
.ts-login-card { width: 100%; max-width: 380px; }
.ts-card-title { font-size: 22px; font-weight: 600; color: #0f172a; margin-bottom: 6px; }
.ts-card-sub { font-size: 13px; color: #94a3b8; margin-bottom: 28px; }

/* ALERT */
.ts-alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; font-size: 13px; padding: 12px 14px; border-radius: 9px; margin-bottom: 18px; }

/* FIELDS */
.ts-field { margin-bottom: 16px; }
.ts-field label { display: block; font-size: 12px; font-weight: 500; color: #475569; margin-bottom: 6px; }
.ts-input-wrap { display: flex; align-items: center; gap: 10px; background: #f8faff; border: 1.5px solid #e2e8f0; border-radius: 9px; padding: 0 13px; height: 44px; transition: border-color 0.15s; }
.ts-input-wrap:focus-within { border-color: #1230a0; background: #fff; }
.ts-input-wrap input { flex: 1; border: none; outline: none; font-size: 13px; color: #0f172a; background: transparent; font-family: 'Inter', sans-serif; }
.ts-input-wrap input::placeholder { color: #cbd5e1; }
.ts-eye { cursor: pointer; display: flex; align-items: center; }

/* ROW */
.ts-row-between { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.ts-remember { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.ts-remember input { accent-color: #1230a0; width: 14px; height: 14px; }
.ts-remember span { font-size: 12px; color: #64748b; }
.ts-forgot { font-size: 12px; color: #1230a0; font-weight: 500; }
.ts-forgot:hover { text-decoration: underline; }

/* BUTTONS */
.ts-btn-submit { width: 100%; background: #1230a0; color: #fff; border: none; border-radius: 9px; padding: 13px; font-size: 14px; font-weight: 500; cursor: pointer; font-family: 'Inter', sans-serif; transition: background 0.15s; margin-bottom: 14px; }
.ts-btn-submit:hover { background: #0f2280; }
.ts-divider { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.ts-divider::before, .ts-divider::after { content: ''; flex: 1; height: 1px; background: #e2e8f0; }
.ts-divider span { font-size: 11px; color: #cbd5e1; }
.ts-btn-register { display: block; width: 100%; text-align: center; background: #fff; color: #475569; border: 1.5px solid #e2e8f0; border-radius: 9px; padding: 12px; font-size: 13px; font-weight: 500; transition: border-color 0.15s, color 0.15s; margin-bottom: 18px; }
.ts-btn-register:hover { border-color: #1230a0; color: #1230a0; }
.ts-secure-note { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 11px; color: #94a3b8; }

/* ── FOOTER ── */
.ts-footer { background: #0a1628; padding: 48px 0 0; }
.ts-footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.ts-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.ts-footer-logo-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ts-footer-logo-icon { width: 32px; height: 32px; border-radius: 8px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; }
.ts-footer-logo-name { font-size: 14px; font-weight: 600; color: #fff; }
.ts-footer-logo-tag { font-size: 10px; color: #475569; }
.ts-footer-desc { font-size: 12px; color: #475569; line-height: 1.7; margin-bottom: 14px; }
.ts-footer-contact { margin-bottom: 6px; }
.ts-footer-contact a { font-size: 12px; color: #64748b; }
.ts-footer-contact a:hover { color: #60a5fa; }
.ts-footer-col-title { font-size: 11px; font-weight: 600; color: #fff; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.ts-footer-links { display: flex; flex-direction: column; gap: 8px; }
.ts-footer-links a { font-size: 12px; color: #475569; }
.ts-footer-links a:hover { color: #60a5fa; }
.ts-footer-bottom { padding: 16px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.ts-footer-copy { font-size: 11px; color: #334155; }
.ts-footer-pay { display: flex; gap: 6px; }
.ts-pay-badge { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.07); border-radius: 4px; padding: 3px 9px; font-size: 11px; color: #475569; }
.ts-footer-legal { display: flex; gap: 14px; }
.ts-footer-legal a { font-size: 11px; color: #334155; }
.ts-footer-legal a:hover { color: #60a5fa; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .ts-login-wrap { grid-template-columns: 1fr; }
  .ts-login-left { padding: 32px 24px; min-height: auto; }
  .ts-login-right { padding: 32px 24px; }
  .ts-nav { display: none; }
  .ts-footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .ts-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .ts-topbar-right { display: none; }
  .ts-footer-grid { grid-template-columns: 1fr; }
  .ts-footer-bottom { flex-direction: column; align-items: flex-start; }
}


/* Login page inside WHMCS layout — no duplicate header/footer */
.ts-login-page { max-width: 1200px; margin: 0 auto 34px; background: #fff; border: 1px solid #e2e8f0; border-radius: 0 0 18px 18px; overflow: hidden; box-shadow: 0 18px 48px rgba(18,48,160,0.08); }
.ts-login-page .ts-login-wrap { min-height: 560px; }
.ts-login-page .alert { border-radius: 9px !important; font-size: 13px !important; margin-bottom: 18px !important; }
.ts-login-page .ts-login-title { color: #fff !important; }
.ts-login-page .ts-login-left { min-height: 560px; }
.ts-login-page .ts-input-wrap input { height: 40px !important; box-shadow: none !important; padding: 0 !important; }
.ts-login-page .ts-btn-submit { line-height: 1.2; }
@media (max-width: 900px) { .ts-login-page { border-radius: 0; margin-bottom: 20px; } .ts-login-page .ts-login-wrap { min-height: auto; } .ts-login-page .ts-login-left { min-height: auto; } }
