/* AWT CRM (c) All We Trade
   Authentication pages: login, forgot / reset / set password, two-factor, MFA setup, lockout. */
:root {
  --awt-bg: #1a2332;
  --awt-card: #ffffff;
  --awt-line: #e2e5ea;
  --awt-text: #111827;
  --awt-muted: #4b5563;
  --awt-faint: #9ca3af;
  --awt-blue: #2563eb;
  --awt-blue-dark: #1d4ed8;
  --awt-blue-deep: #1e40af;
  --awt-blue-soft: #eff6ff;
  --awt-blue-edge: #bfdbfe;
  --awt-field: #f8fafc;
  --awt-field-edge: #d1d5db;
  --awt-ok-bg: #f0fdf4; --awt-ok-fg: #166534; --awt-ok-edge: #bbf7d0;
  --awt-bad-bg: #fef2f2; --awt-bad-fg: #991b1b; --awt-bad-edge: #fecaca;
  --awt-warn-bg: #fffbeb; --awt-warn-fg: #92400e; --awt-warn-edge: #fde68a;
}
html, body.awt-auth { min-height: 100%; margin: 0; padding: 0; }
body.awt-auth {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  color: var(--awt-muted);
  background: var(--awt-bg) url("../../images/awt/login-banner.jpg") center / cover no-repeat fixed;
  min-height: 100vh;
}
.awt-auth .awt-wrap { position: relative; z-index: 1; margin: 60px auto 50px; }
.awt-auth .company-logo { display: block; text-align: center; padding: 0; margin: 0 0 20px; }
.awt-auth .company-logo img { display: block; max-width: 180px; height: auto; margin: 0 auto; filter: drop-shadow(0 4px 14px rgba(0,0,0,.30)); }
.awt-auth .company-logo .logo-text { color: #fff; font-size: 22px; font-weight: 700; text-decoration: none; }
.awt-auth .awt-card {
  background: var(--awt-card);
  border: 1px solid var(--awt-line);
  border-radius: 16px;
  padding: 38px 32px 28px;
  box-shadow: 0 25px 60px rgba(0,0,0,.28), 0 2px 6px rgba(0,0,0,.08);
}
.awt-auth .awt-icon-row { display: flex; justify-content: center; margin-bottom: 18px; }
.awt-auth .awt-icon-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(140deg, var(--awt-blue-deep), #3b82f6);
  box-shadow: 0 6px 22px rgba(59,130,246,.40);
}
.awt-auth .awt-icon-badge svg { width: 26px; height: 26px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.awt-auth h1.awt-title { margin: 0 0 4px; text-align: center; font-size: 22px; font-weight: 700; color: var(--awt-text); letter-spacing: -.2px; line-height: 1.3; text-transform: none; }
.awt-auth .awt-kicker { display: block; text-align: center; margin: 0 0 20px; color: #3b82f6; font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; }
.awt-auth hr.awt-sep { border: 0; height: 1px; background: #e5e7eb; margin: 0 0 18px; }
.awt-auth p.awt-desc { text-align: center; color: var(--awt-muted); font-size: 13.5px; line-height: 1.7; margin: 0 0 22px; padding: 0 10px; }
.awt-auth p.awt-desc b { color: var(--awt-blue-dark); font-weight: 600; }
.awt-auth .form-group { margin-bottom: 16px; position: relative; }
.awt-auth label, .awt-auth .control-label { display: block; color: #374151; font-weight: 600 !important; font-size: 13px; margin-bottom: 6px; }
.awt-auth input.form-control {
  display: block; width: 100%; height: 46px; padding: 6px 14px; font-size: 14px; color: var(--awt-text);
  background: var(--awt-field); border: 2px solid var(--awt-field-edge); border-radius: 10px;
  box-shadow: none; -webkit-appearance: none; transition: border-color .2s ease, box-shadow .2s ease;
}
.awt-auth input.form-control:focus { background: #fff; border-color: #3b82f6; box-shadow: 0 0 0 4px rgba(59,130,246,.12); outline: none; }
.awt-auth input.form-control.awt-code { height: 52px; font-size: 20px; font-weight: 700; letter-spacing: 8px; text-align: center; }
.awt-auth input.form-control.awt-code::placeholder { letter-spacing: 0; font-size: 13px; font-weight: 400; color: var(--awt-faint); }
.awt-auth .awt-check { display: flex; align-items: center; gap: 8px; margin: 4px 0 18px; font-size: 13px; color: var(--awt-muted); }
.awt-auth .awt-check input { width: 16px; height: 16px; margin: 0; }
.awt-auth .awt-check label { margin: 0; font-weight: 500 !important; }
.awt-auth .btn.awt-btn {
  display: block; width: 100%; height: 50px; line-height: 50px; padding: 0; border: 0; border-radius: 12px;
  background: var(--awt-blue); color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .3px;
  box-shadow: 0 4px 16px rgba(37,99,235,.40); transition: all .2s ease; cursor: pointer;
}
.awt-auth .btn.awt-btn:hover { background: var(--awt-blue-dark); transform: translateY(-1px); color: #fff; }
.awt-auth .btn.awt-btn:active { background: var(--awt-blue-deep); transform: none; }
.awt-auth .btn.awt-btn:focus { outline: none; box-shadow: 0 0 0 3px rgba(37,99,235,.30); color: #fff; }
.awt-auth .btn.awt-btn[disabled] { opacity: .7; cursor: default; transform: none; }
.awt-auth .awt-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 0 0 16px; }
.awt-auth .awt-actions.awt-actions-center { justify-content: center; }
.awt-auth a.awt-link { display: inline-flex; align-items: center; gap: 5px; color: #3b82f6; font-size: 13px; font-weight: 600; text-decoration: none; }
.awt-auth a.awt-link:hover { color: var(--awt-blue-dark); text-decoration: underline; text-underline-offset: 3px; }
.awt-auth a.awt-link svg, .awt-auth a.awt-pill svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.awt-auth a.awt-pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 7px 14px; border-radius: 8px;
  background: var(--awt-blue-soft); border: 1px solid var(--awt-blue-edge); color: var(--awt-blue-dark);
  font-size: 12px; font-weight: 700; text-decoration: none; transition: all .2s ease;
}
.awt-auth a.awt-pill:hover { background: #dbeafe; border-color: #93c5fd; color: var(--awt-blue-deep); }
.awt-auth .alert { border-radius: 10px; font-size: 13px; font-weight: 500; padding: 10px 14px; margin-bottom: 16px; text-align: center; }
.awt-auth .alert-danger  { background: var(--awt-bad-bg);  color: var(--awt-bad-fg);  border: 1px solid var(--awt-bad-edge); }
.awt-auth .alert-success { background: var(--awt-ok-bg);   color: var(--awt-ok-fg);   border: 1px solid var(--awt-ok-edge); }
.awt-auth .alert-warning, .awt-auth .alert-info { background: var(--awt-warn-bg); color: var(--awt-warn-fg); border: 1px solid var(--awt-warn-edge); }
.awt-auth .awt-foot { text-align: center; margin-top: 18px; padding-top: 16px; border-top: 1px solid #e5e7eb; }
.awt-auth .awt-foot span { display: inline-flex; align-items: center; gap: 5px; color: var(--awt-faint); font-size: 11px; font-weight: 500; }
.awt-auth .awt-foot svg { width: 13px; height: 13px; stroke: var(--awt-faint); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.awt-auth .g-recaptcha { margin-bottom: 16px; }
/* password field extras (reset / set password) */
.awt-auth .awt-pwd-wrap input.form-control { padding-right: 46px; }
.awt-auth .awt-pwd-toggle {
  position: absolute; right: 6px; top: 27px; width: 36px; height: 36px; border: 0; background: transparent;
  color: var(--awt-faint); cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.awt-auth .awt-pwd-toggle:hover { color: var(--awt-blue); }
.awt-auth .awt-pwd-toggle svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.awt-auth .awt-pwd-toggle .awt-eye-off { display: none; }
.awt-auth .awt-pwd-toggle.is-visible .awt-eye-on { display: none; }
.awt-auth .awt-pwd-toggle.is-visible .awt-eye-off { display: block; }
.awt-auth .awt-strength { margin: -6px 0 12px; }
.awt-auth .awt-strength-bar { display: flex; gap: 4px; margin-bottom: 6px; }
.awt-auth .awt-strength-seg { flex: 1; height: 5px; border-radius: 3px; background: #e5e7eb; transition: background .2s ease; }
.awt-auth .awt-strength[data-level="1"] .awt-strength-seg:nth-child(-n+1) { background: #ef4444; }
.awt-auth .awt-strength[data-level="2"] .awt-strength-seg:nth-child(-n+2) { background: #f59e0b; }
.awt-auth .awt-strength[data-level="3"] .awt-strength-seg:nth-child(-n+3) { background: #3b82f6; }
.awt-auth .awt-strength[data-level="4"] .awt-strength-seg:nth-child(-n+4) { background: #16a34a; }
.awt-auth .awt-strength-label { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--awt-faint); }
.awt-auth .awt-strength-text { font-weight: 600; color: var(--awt-muted); }
.awt-auth ul.awt-criteria { list-style: none; margin: 0 0 14px; padding: 0; font-size: 12px; color: var(--awt-faint); }
.awt-auth ul.awt-criteria li { display: flex; align-items: center; gap: 6px; line-height: 1.7; }
.awt-auth ul.awt-criteria li .awt-c-icon { display: inline-flex; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #d1d5db; font-size: 9px; align-items: center; justify-content: center; color: transparent; }
.awt-auth ul.awt-criteria li.is-met { color: #166534; }
.awt-auth ul.awt-criteria li.is-met .awt-c-icon { background: #16a34a; border-color: #16a34a; color: #fff; }
.awt-auth .awt-match { font-size: 12px; min-height: 18px; margin: -8px 0 12px; font-weight: 600; }
.awt-auth .awt-match.is-ok { color: #166534; }
.awt-auth .awt-match.is-bad { color: var(--awt-bad-fg); }
/* MFA setup */
.awt-auth .awt-apps { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 0 0 18px; }
.awt-auth .awt-app { padding: 6px 12px; border-radius: 999px; background: #f3f4f6; color: #374151; font-size: 12px; font-weight: 600; }
.awt-auth .awt-qr-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 20px; }
.awt-auth .awt-qr-card { padding: 12px; border-radius: 14px; border: 1px solid var(--awt-line); background: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.awt-auth .awt-qr-card canvas { display: block; width: 220px; height: 220px; image-rendering: pixelated; }
.awt-auth .awt-secret-card { width: 100%; text-align: center; padding: 12px; border-radius: 12px; background: var(--awt-field); border: 1px dashed var(--awt-field-edge); }
.awt-auth .awt-secret-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--awt-faint); margin-bottom: 6px; }
.awt-auth .awt-secret { display: block; font-family: SFMono-Regular, Menlo, Consolas, monospace; font-size: 15px; font-weight: 700; letter-spacing: 2px; color: var(--awt-text); word-break: break-all; }
.awt-auth .awt-secret-hint { font-size: 11.5px; color: var(--awt-faint); margin-top: 6px; }
.awt-auth .awt-code-row { display: flex; gap: 10px; align-items: stretch; }
.awt-auth .awt-code-row .form-group { flex: 1; margin: 0; }
.awt-auth .awt-code-row .btn.awt-btn { width: auto; padding: 0 18px; white-space: nowrap; }
@media (max-width: 767px) {
  .awt-auth .awt-wrap { margin: 30px auto 20px; }
  .awt-auth .awt-card { padding: 28px 20px 22px; border-radius: 14px; }
  .awt-auth h1.awt-title { font-size: 19px; }
  .awt-auth .awt-actions { justify-content: center; }
  .awt-auth .awt-code-row { flex-direction: column; }
  .awt-auth .awt-code-row .btn.awt-btn { width: 100%; }
}
@media screen and (max-height: 575px), screen and (min-width: 992px) and (max-width: 1199px) {
  .awt-auth .g-recaptcha { transform: scale(.83); transform-origin: 0 0; }
}
