/* ==============================================================
   FryingPal - Auth Seiten (Login + Install)
   ============================================================== */

:root {
  --bg: #eef1f7;
  --card: #ffffff;
  --ink: #1f2330;
  --ink-soft: #4e5465;
  --muted: #8a90a0;
  --line: #e3e6ec;
  --blue: #4f72f5;
  --blue-deep: #3853c4;
  --red: #e53935;
  --green: #22c55e;
  --yellow: #f59e0b;
  --radius-lg: 20px;
  --shadow-lg: 0 10px 40px rgba(17, 24, 39, 0.15);
  --font: 'DM Sans', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

.auth-body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 15% 10%, rgba(79,114,245,0.18), transparent 45%),
    radial-gradient(circle at 85% 90%, rgba(229,57,53,0.10), transparent 50%),
    var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  -webkit-font-smoothing: antialiased;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 36px 34px;
  animation: rise .35s cubic-bezier(.2,.8,.2,1) both;
}
.install-card { max-width: 480px; }

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.auth-brand {
  text-align: center;
  margin-bottom: 22px;
}
.auth-logo {
  font-size: 44px;
  line-height: 1;
  margin-bottom: 10px;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.08));
}
.auth-brand h1 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--blue-deep);
}
.auth-sub {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.auth-intro {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 20px;
  text-align: center;
}

.auth-error {
  background: #fff4f3;
  color: var(--red);
  border: 1px solid #f6c8c6;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 16px;
  animation: shake .35s ease;
}
@keyframes shake {
  0%,100% { transform: translateX(0); }
  25%     { transform: translateX(-4px); }
  75%     { transform: translateX(4px); }
}

.auth-success {
  text-align: center;
  padding: 16px 4px 4px;
}
.auth-success h2 {
  color: var(--green);
  margin: 0 0 10px;
}
.auth-success p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 22px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}
.auth-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.auth-field > span {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.auth-field input {
  border: none;
  border-bottom: 1.5px solid var(--line);
  background: transparent;
  padding: 10px 2px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  outline: none;
  transition: border-color .15s;
  font-family: inherit;
}
.auth-field input:focus {
  border-bottom-color: var(--blue);
}

.auth-btn {
  margin-top: 8px;
  background: var(--blue);
  color: white;
  border: none;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  transition: background .15s, transform .08s;
  box-shadow: 0 3px 12px rgba(79,114,245,0.25);
}
.auth-btn:hover  { background: var(--blue-deep); }
.auth-btn:active { transform: scale(.98); }

.auth-hint {
  margin: 22px 0 0;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  line-height: 1.55;
}
.auth-hint code {
  font-family: ui-monospace, Menlo, monospace;
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--ink-soft);
}
