/* EE-PRODUCTION-P1-R1F-R5C-R6-LOCAL-R2
   Presentation-only authentication UX layer.
   No authentication/session/CSRF/database behavior lives in this file. */

:root {
  --ee-r6-bg: #f4f7fb;
  --ee-r6-card: rgba(255,255,255,.96);
  --ee-r6-text: #18223b;
  --ee-r6-muted: #66738f;
  --ee-r6-border: #d9e1ef;
  --ee-r6-primary: #3155ff;
  --ee-r6-primary-2: #6d45ff;
  --ee-r6-danger: #b42318;
  --ee-r6-shadow: 0 24px 70px rgba(30, 52, 98, .14);
}

html { color-scheme: light; }

body.ee-r6-auth {
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 8%, rgba(49,85,255,.10), transparent 34rem),
    radial-gradient(circle at 88% 92%, rgba(109,69,255,.09), transparent 30rem),
    var(--ee-r6-bg);
  color: var(--ee-r6-text);
}

body.ee-r6-auth * { box-sizing: border-box; }

body.ee-r6-auth .ee-r6-auth-form {
  position: relative;
}

body.ee-r6-auth .ee-r6-auth-surface {
  border-radius: 22px;
  box-shadow: var(--ee-r6-shadow);
}

body.ee-r6-auth .ee-r6-auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 7px 11px;
  border: 1px solid rgba(49,85,255,.18);
  border-radius: 999px;
  background: rgba(49,85,255,.07);
  color: #2945cc;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
}

body.ee-r6-auth .ee-r6-auth-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ee-r6-primary), var(--ee-r6-primary-2));
  box-shadow: 0 0 0 4px rgba(49,85,255,.10);
}

body.ee-r6-auth form label {
  color: var(--ee-r6-text);
  font-weight: 700;
}

body.ee-r6-auth input[type="email"],
body.ee-r6-auth input[type="password"],
body.ee-r6-auth input[type="text"],
body.ee-r6-auth input[type="tel"],
body.ee-r6-auth input[type="url"],
body.ee-r6-auth select,
body.ee-r6-auth textarea {
  width: 100%;
  border: 1px solid var(--ee-r6-border);
  border-radius: 12px;
  background: #fff;
  color: var(--ee-r6-text);
  min-height: 46px;
  padding: 11px 13px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

body.ee-r6-auth textarea { min-height: 110px; }

body.ee-r6-auth input:focus,
body.ee-r6-auth select:focus,
body.ee-r6-auth textarea:focus {
  border-color: rgba(49,85,255,.68);
  box-shadow: 0 0 0 4px rgba(49,85,255,.11);
}

body.ee-r6-auth button[type="submit"],
body.ee-r6-auth input[type="submit"],
body.ee-r6-auth .btn {
  min-height: 44px;
  border-radius: 12px;
}

body.ee-r6-auth button[type="submit"],
body.ee-r6-auth input[type="submit"] {
  border: 0;
  background: linear-gradient(135deg, var(--ee-r6-primary), var(--ee-r6-primary-2));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(49,85,255,.22);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

body.ee-r6-auth button[type="submit"]:hover,
body.ee-r6-auth input[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(49,85,255,.27);
}

body.ee-r6-auth button[type="submit"]:focus-visible,
body.ee-r6-auth a:focus-visible,
body.ee-r6-auth .ee-r6-password-toggle:focus-visible {
  outline: 3px solid rgba(49,85,255,.30);
  outline-offset: 3px;
}

body.ee-r6-auth a {
  color: var(--ee-r6-primary);
  text-underline-offset: 3px;
}

body.ee-r6-auth .ee-r6-password-wrap {
  position: relative;
}

body.ee-r6-auth .ee-r6-password-wrap > input {
  padding-right: 76px !important;
}

body.ee-r6-auth .ee-r6-password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  min-height: 32px;
  padding: 5px 9px;
  border: 0;
  border-radius: 8px;
  background: #eef2ff;
  color: #2945cc;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: none;
}

body.ee-r6-auth .ee-r6-password-toggle:hover {
  background: #e4e9ff;
}

body.ee-r6-auth .err,
body.ee-r6-auth .error,
body.ee-r6-auth .alert-danger,
body.ee-r6-auth [role="alert"] {
  border-radius: 12px;
}

body.ee-r6-auth .foot,
body.ee-r6-auth .sub,
body.ee-r6-auth .muted,
body.ee-r6-auth small {
  color: var(--ee-r6-muted);
}

body.ee-r6-auth .ee-r6-auth-security-note {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--ee-r6-border);
  color: var(--ee-r6-muted);
  font-size: 12px;
  line-height: 1.55;
}

@media (max-width: 640px) {
  body.ee-r6-auth {
    background: var(--ee-r6-bg);
  }

  body.ee-r6-auth input[type="email"],
  body.ee-r6-auth input[type="password"],
  body.ee-r6-auth input[type="text"],
  body.ee-r6-auth select,
  body.ee-r6-auth textarea {
    font-size: 16px;
  }

  body.ee-r6-auth .ee-r6-auth-surface {
    border-radius: 16px;
    box-shadow: 0 16px 44px rgba(30,52,98,.11);
  }
}
