/*
 * DZTE Lite+ login and prompt page stylesheet.
 * Sleek Enterprise Cyber-Dark design tokens.
 *
 * Glassmorphic surface, electric violet / cyan accents, high-contrast
 * readable typography without external CDN fonts (air-gap clean).
 */

:root {
  --bg: #08090d;
  --surface: rgba(18, 20, 32, 0.85);
  --surface-hover: rgba(28, 32, 50, 0.9);
  --surface-input: rgba(10, 11, 16, 0.7);
  --border: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(139, 92, 246, 0.6);
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --accent-gradient: linear-gradient(135deg, #7c3aed, #6366f1);
  --accent-hover-gradient: linear-gradient(135deg, #8b5cf6, #7c3aed);
  --accent-shadow: 0 4px 18px rgba(124, 58, 237, 0.45);
  --card-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(124, 58, 237, 0.12);
  --danger: #ef4444;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background:
    radial-gradient(ellipse at 50% -15%, rgba(124, 58, 237, 0.22), transparent 70%),
    radial-gradient(circle at bottom right, rgba(6, 182, 212, 0.08), transparent 50%),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}

.login-card {
  width: 100%;
  max-width: 410px;
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    var(--card-shadow);
  padding: 36px 32px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-card:hover {
  border-color: rgba(139, 92, 246, 0.25);
}

.login-header {
  margin-bottom: 26px;
  text-align: center;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.25), rgba(99, 102, 241, 0.25));
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.brand-badge .glow-dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
}

.login-header h1 {
  margin: 0 0 6px 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.login-header .subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login-form label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 10px;
}

.login-form input {
  background: var(--surface-input);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  padding: 11px 14px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-form input:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25), 0 0 16px rgba(139, 92, 246, 0.2);
  background: rgba(14, 16, 24, 0.85);
}

.pw-wrap {
  display: flex !important;
  gap: 8px !important;
  align-items: stretch !important;
}

.pw-wrap input {
  flex: 1 !important;
}

#pw-toggle {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #cbd5e1 !important;
  border-radius: 8px !important;
  padding: 0 14px !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  letter-spacing: 0.02em;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

#pw-toggle:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(139, 92, 246, 0.4) !important;
  color: #fff !important;
}

.btn {
  display: inline-block;
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff;
  margin-top: 20px;
  box-shadow: var(--accent-shadow);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--accent-hover-gradient);
  box-shadow: 0 6px 24px rgba(124, 58, 237, 0.65);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(124, 58, 237, 0.4);
}

.btn-sso {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 8px;
}

.btn-sso:hover,
.btn-sso:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(139, 92, 246, 0.5);
  color: #fff;
  transform: translateY(-1px);
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 16px 0 8px 0;
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.divider span {
  padding: 0 12px;
}

.error {
  margin: 0 0 20px 0;
  padding: 12px 14px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 500;
}

.info {
  margin: 0 0 20px 0;
  padding: 12px 14px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: #a5f3fc;
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.45;
}

.login-footer {
  margin-top: 26px;
  text-align: center;
  color: var(--text-subtle);
  font-size: 12px;
  line-height: 1.5;
}

.login-footer p {
  margin: 0;
}
