@import url("/static/css/iuve-brand.css");

:root {
  --auth-bg-subtle: var(--iuve-bg, #f2f2f2);
  --auth-bg: var(--iuve-surface, #ffffff);
  --auth-surface: var(--iuve-surface, #ffffff);
  --auth-line: var(--iuve-border, rgba(20, 20, 20, 0.14));
  --auth-line-strong: var(--iuve-border-strong, rgba(20, 20, 20, 0.28));
  --auth-text: var(--iuve-text, #111111);
  --auth-muted: var(--iuve-muted, #555555);
  --auth-primary: var(--iuve-primary, #1f1f1f);
  --auth-primary-hover: var(--iuve-primary-hover, #000000);
  --auth-primary-soft: var(--iuve-primary-soft, rgba(20, 20, 20, 0.12));
  --auth-shadow: var(--iuve-shadow-md, 0 14px 34px rgba(0, 0, 0, 0.12));
  --auth-font-sans: var(--iuve-font-sans, "IBM Plex Sans", "Segoe UI", sans-serif);
  --auth-font-display: var(--iuve-font-display, "Space Grotesk", "IBM Plex Sans", sans-serif);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--auth-text);
  font-family: var(--auth-font-sans);
  background:
    radial-gradient(900px 420px at 12% -8%, rgba(255, 45, 143, 0.07), transparent 62%),
    radial-gradient(760px 380px at 96% 4%, rgba(45, 226, 255, 0.06), transparent 58%),
    linear-gradient(180deg, var(--auth-bg-subtle) 0%, var(--auth-bg) 48%);
  min-height: 100vh;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  position: relative;
  z-index: 1;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--auth-surface);
  border: 1px solid var(--auth-line);
  border-radius: 22px;
  box-shadow: var(--auth-shadow);
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

h1 {
  margin: 8px 0 0;
  font-size: clamp(28px, 5vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-align: center;
  color: var(--auth-text);
  font-family: var(--auth-font-display);
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  color: var(--auth-text);
  font-weight: 700;
  font-size: 20px;
  font-family: var(--auth-font-display);
}

.auth-brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.subtitle {
  margin: 8px 0 22px;
  color: var(--auth-muted);
  text-align: center;
  font-size: 15px;
  line-height: 1.55;
}

.auth-form {
  display: grid;
  gap: 14px;
  width: 100%;
}

label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--auth-text);
}

input {
  border: 1px solid var(--auth-line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  background: var(--auth-bg);
  color: var(--auth-text);
}

input::placeholder {
  color: #94a3b8;
}

input:focus {
  outline: 0;
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 3px var(--auth-primary-soft);
}

button {
  border: 1px solid rgba(109, 40, 217, 0.32);
  background: linear-gradient(120deg, #ff2d8f, #8b5cf6 48%, #2de2ff);
  color: #ffffff;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(109, 40, 217, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 14px 32px rgba(109, 40, 217, 0.34);
}

.links {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.links a {
  color: var(--auth-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.links a:hover {
  text-decoration: underline;
  color: var(--auth-primary-hover);
}

.social-auth-wrap {
  margin-top: 16px;
  display: grid;
  gap: 10px;
  width: 100%;
}

.social-auth-title {
  margin: 0;
  font-size: 13px;
  color: var(--auth-muted);
  text-align: center;
}

.social-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--auth-line);
  background: var(--auth-bg);
  color: var(--auth-text);
}

.social-google {
  background: var(--auth-bg);
}

.social-facebook {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

.social-github {
  background: var(--auth-bg-subtle);
  color: var(--auth-text);
  border-color: var(--auth-line);
}

.alert {
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  margin-bottom: 14px;
  width: 100%;
}

.alert.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.alert.info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

.form-section {
  border: 1px solid var(--auth-line);
  border-radius: 12px;
  padding: 12px;
  background: var(--auth-bg-subtle);
}

.form-section-title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--auth-text);
}

.form-section-help {
  margin: 0 0 10px;
  color: var(--auth-muted);
  font-size: 13px;
  line-height: 1.5;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--auth-text);
}

.checkbox-label input[type="checkbox"] {
  margin-top: 2px;
}

@media (max-width: 640px) {
  .auth-page {
    padding: 14px;
  }

  .auth-card {
    padding: 20px 16px;
    border-radius: 16px;
  }
}
