/* =====================================================================
   DTECH INNOVATIONS - Login & Register (portal)
   Rangi za logo: navy, royal blue, electric blue, sky, silver
   ===================================================================== */
:root {
  --dt-navy: #0a1f44;
  --dt-royal: #0d47a1;
  --dt-blue: #1565c0;
  --dt-electric: #1e88e5;
  --dt-sky: #4fc3f7;
  --dt-silver: #b8c4d0;
  --dt-open: #00c389;
  --dt-upcoming: #ffb300;
  --dt-closed: #ef5350;
  --dt-grad: linear-gradient(135deg, #0d47a1, #1e88e5 60%, #4fc3f7);
  --primary-color: #1565c0; /* inatumika na fomu ya register */
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body.dt-auth-body { overflow-x: hidden; }
body.dt-auth-body { margin: 0; min-height: 100vh; background: #eef3fa; font-family: 'Inter', 'Segoe UI', system-ui, sans-serif; color: #1d2b3f; }

.dt-auth { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; }

/* ---------- Paneli ya brand (kushoto) ---------- */
.dt-auth-brand { position: relative; overflow: hidden; color: #fff; padding: 3rem 3.5rem; display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(900px 500px at 0% 0%, rgba(79, 195, 247, .25), transparent 60%), linear-gradient(140deg, #071631 0%, #0a1f44 35%, #0d47a1 75%, #1e88e5 120%); }
.dt-auth-brand canvas { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.dt-auth-brand > * { position: relative; z-index: 1; }
.dt-auth-logo { display: flex; align-items: center; gap: .9rem; text-decoration: none !important; color: #fff !important; }
.dt-auth-logo img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px rgba(255, 255, 255, .25), 0 8px 24px rgba(0, 0, 0, .3); }
.dt-auth-logo b { font-size: 1.35rem; letter-spacing: .5px; display: block; line-height: 1.1; }
.dt-auth-logo small { color: var(--dt-sky); letter-spacing: 3px; font-size: .68rem; font-weight: 700; }
.dt-auth-hero h1 { font-size: clamp(2rem, 3.2vw, 3rem); font-weight: 800; line-height: 1.15; margin: 0 0 1rem; color: #fff; }
.dt-auth-hero h1 span { background: linear-gradient(90deg, #fff, #9fdcff, #fff); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: dtAuthShine 5s linear infinite; }
.dt-auth-hero p { color: rgba(255, 255, 255, .8); font-size: 1.02rem; max-width: 460px; margin: 0 0 1.6rem; }
.dt-auth-feats { list-style: none; padding: 0; margin: 0 0 1.8rem; display: grid; gap: .65rem; }
.dt-auth-feats li { display: flex; align-items: center; gap: .7rem; font-weight: 600; color: rgba(255, 255, 255, .92); animation: dtAuthIn .6s both; }
.dt-auth-feats li i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); color: var(--dt-sky); }
.dt-auth-live h6 { font-size: .72rem; letter-spacing: 2px; text-transform: uppercase; color: rgba(255, 255, 255, .7); margin: 0 0 .7rem; font-weight: 700; }
.dt-auth-live h6::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--dt-open); margin-right: .5rem; animation: dtAuthPulse 1.6s infinite; vertical-align: 1px; }
.dt-auth-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.dt-auth-chips span { font-size: .78rem; font-weight: 600; padding: .38rem .8rem; border-radius: 50px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(6px); }
.dt-auth-chips span i { margin-right: .35rem; font-size: .55rem; vertical-align: 2px; }
.dt-auth-chips .is-open i { color: var(--dt-open); }
.dt-auth-chips .is-upcoming i { color: var(--dt-upcoming); }
.dt-auth-chips .is-closed i { color: var(--dt-closed); }
.dt-auth-foot { font-size: .8rem; color: rgba(255, 255, 255, .6); }
.dt-auth-foot a { color: var(--dt-sky); }

/* ---------- Fomu (kulia) ---------- */
.dt-auth-main { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 2.5rem 1.5rem; position: relative; overflow: hidden; }
.dt-auth-main::before { content: ""; position: absolute; width: 420px; height: 420px; right: -160px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(30, 136, 229, .14), transparent 70%); pointer-events: none; }
.dt-auth-card { width: 100%; max-width: 440px; background: #fff; border-radius: 24px; padding: 2.4rem 2.2rem; box-shadow: 0 24px 60px rgba(13, 71, 161, .14); position: relative; animation: dtAuthUp .6s cubic-bezier(.2, .8, .2, 1) both; }
.dt-auth-card.is-wide { max-width: 520px; }
.dt-auth-card h2 { font-weight: 800; color: var(--dt-navy); font-size: 1.7rem; margin: 0 0 .25rem; }
.dt-auth-card .dt-sub { color: #66768a; margin: 0 0 1.6rem; font-size: .95rem; }
.dt-auth-mobile-logo { display: none; text-align: center; margin-bottom: 1rem; }
.dt-auth-mobile-logo img { width: 72px; height: 72px; border-radius: 50%; box-shadow: 0 8px 20px rgba(13, 71, 161, .25); }

.dt-field { position: relative; margin-bottom: 1.15rem; }
.dt-field label { display: block; font-size: .8rem; font-weight: 700; color: #34465c; margin-bottom: .4rem; }
.dt-field .dt-ic { position: absolute; left: 15px; bottom: 15px; color: #8a9bb0; font-size: 1.05rem; transition: color .2s; pointer-events: none; }
.dt-field input { width: 100%; height: 52px; border-radius: 14px; border: 1.5px solid #dde6f1; background: #f7faff; padding: 0 48px 0 44px; font-size: .98rem; color: #1d2b3f; transition: border-color .2s, box-shadow .2s, background .2s; outline: none; }
.dt-field input:focus { border-color: var(--dt-electric); background: #fff; box-shadow: 0 0 0 4px rgba(30, 136, 229, .14); }
.dt-field:focus-within .dt-ic { color: var(--dt-electric); }
.dt-eye { position: absolute; right: 12px; bottom: 9px; width: 36px; height: 34px; border: 0; background: transparent; color: #8a9bb0; cursor: pointer; border-radius: 10px; font-size: 1.15rem; }
.dt-eye:hover { color: var(--dt-electric); background: rgba(30, 136, 229, .08); }
.dt-caps { display: none; font-size: .76rem; color: #c77c00; margin-top: .35rem; font-weight: 600; }
.dt-caps.is-on { display: block; }
.dt-auth-row { display: flex; justify-content: space-between; align-items: center; margin: -.2rem 0 1.3rem; font-size: .86rem; }
.dt-auth-row label { display: flex; align-items: center; gap: .45rem; color: #4a5a6b; margin: 0; cursor: pointer; }
.dt-auth-row input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--dt-electric); }
.dt-link { color: var(--dt-electric) !important; font-weight: 700; text-decoration: none !important; cursor: pointer; }
.dt-link:hover { text-decoration: underline !important; }
.dt-auth-btn { width: 100%; height: 54px; border: 0; border-radius: 14px; color: #fff; font-weight: 800; letter-spacing: 1px; font-size: 1rem; cursor: pointer; position: relative; overflow: hidden;
  background: var(--dt-grad); box-shadow: 0 12px 28px rgba(30, 136, 229, .4); transition: transform .2s, box-shadow .2s, filter .2s; }
.dt-auth-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(30, 136, 229, .55); }
.dt-auth-btn:disabled { filter: grayscale(.4); opacity: .65; cursor: not-allowed; box-shadow: none; }
.dt-auth-btn::after { content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); animation: dtAuthBtnShine 4s ease-in-out infinite; }
.dt-auth-btn.is-loading { pointer-events: none; }
.dt-auth-btn.is-loading span { visibility: hidden; }
.dt-auth-btn.is-loading::before { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: dtAuthSpin .7s linear infinite; }
.dt-auth-alt { text-align: center; margin-top: 1.4rem; color: #66768a; font-size: .92rem; }
.dt-auth-site { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-top: 1.2rem; padding: .7rem; border-radius: 12px; background: #f2f7ff; color: var(--dt-royal) !important; font-weight: 700; font-size: .85rem; text-decoration: none !important; transition: background .2s; }
.dt-auth-site:hover { background: #e3eeff; }
.dt-alert { display: flex; align-items: flex-start; gap: .6rem; padding: .85rem 1rem; border-radius: 14px; font-size: .9rem; font-weight: 600; margin-bottom: 1.2rem; animation: dtAuthIn .4s both; }
.dt-alert.err { background: #fdecec; color: #b42323; border: 1px solid #f7caca; }
.dt-alert.ok { background: #e7f8f1; color: #0b7a52; border: 1px solid #bfeedc; }
.dt-alert button { margin-left: auto; border: 0; background: transparent; color: inherit; font-size: 1.2rem; line-height: 1; cursor: pointer; opacity: .7; }
.dt-auth-copy { margin-top: 1.6rem; font-size: .78rem; color: #8a9bb0; text-align: center; }
.shake { animation: dtAuthShake .36s cubic-bezier(.36, .07, .19, .97) both; backface-visibility: hidden; }

/* ---------- Fomu ya Register (inahifadhi muundo na JS zake za awali) ---------- */
.dt-auth-card .form-group { margin-bottom: 1.25rem; }
.dt-auth-card .form-control { background: #f7faff !important; border: 1.5px solid #dde6f1 !important; border-radius: 14px !important; transition: border-color .2s, box-shadow .2s, background .2s; }
.dt-auth-card .form-control:focus { border-color: var(--dt-electric) !important; background: #fff !important; box-shadow: 0 0 0 4px rgba(30, 136, 229, .14) !important; }
.dt-auth-card .auth-form-btn { height: 54px; border: 0 !important; border-radius: 14px !important; font-weight: 800 !important; letter-spacing: 1px; background: var(--dt-grad) !important; box-shadow: 0 12px 28px rgba(30, 136, 229, .4); }
.dt-auth-card .auth-form-btn:disabled { opacity: .6; box-shadow: none; }
.dt-auth-card .login-link { color: var(--dt-electric) !important; font-weight: 800; }

@keyframes dtAuthUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes dtAuthIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@keyframes dtAuthPulse { 0% { box-shadow: 0 0 0 0 rgba(0, 195, 137, .7); } 80%, 100% { box-shadow: 0 0 0 8px rgba(0, 195, 137, 0); } }
@keyframes dtAuthShine { to { background-position: 200% center; } }
@keyframes dtAuthBtnShine { 0%, 60% { left: -120%; } 100% { left: 160%; } }
@keyframes dtAuthSpin { to { transform: rotate(360deg); } }
@keyframes dtAuthShake { 10%, 90% { transform: translate3d(-1px, 0, 0); } 20%, 80% { transform: translate3d(2px, 0, 0); } 30%, 50%, 70% { transform: translate3d(-4px, 0, 0); } 40%, 60% { transform: translate3d(4px, 0, 0); } }

@media (max-width: 991px) {
  .dt-auth { grid-template-columns: 1fr; }
  .dt-auth-brand { padding: 2rem 1.5rem; min-height: auto; }
  .dt-auth-hero h1 { font-size: 1.8rem; }
  .dt-auth-feats, .dt-auth-hero p { display: none; }
  .dt-auth-foot { display: none; }
  .dt-auth-main { padding: 1.5rem 1rem 6rem; }
}
@media (max-width: 575px) {
  .dt-auth-brand { display: none; }
  .dt-auth-mobile-logo { display: block; }
  .dt-auth-card { padding: 1.8rem 1.3rem; border-radius: 20px; }
  body.dt-auth-body { background: linear-gradient(180deg, #0a1f44 0, #0d47a1 220px, #eef3fa 220px); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.dt-auth-card.auth-form-light { box-shadow: 0 24px 60px rgba(13, 71, 161, .14) !important; border-radius: 24px !important; padding: 2.4rem 2.2rem !important; }
@media (max-width: 575px) { .dt-auth-card.auth-form-light { padding: 1.8rem 1.3rem !important; } }

.dt-auth-card #openDtechTerms { color: var(--dt-electric) !important; }
.dt-auth-card .form-check-label { color: #4a5a6b; }
