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

:root {
  --auth-bg:
    radial-gradient(980px 520px at 12% -14%, rgba(94, 126, 255, 0.3), transparent 62%),
    radial-gradient(880px 460px at 100% 100%, rgba(194, 108, 255, 0.28), transparent 58%),
    radial-gradient(760px 430px at 90% 8%, rgba(93, 231, 255, 0.2), transparent 60%),
    linear-gradient(165deg, #060919 0%, #0a1030 42%, #13103f 74%, #1d1552 100%);
  --surface: rgba(20, 28, 72, 0.6);
  --surface-strong: rgba(29, 40, 95, 0.76);
  --line: rgba(133, 156, 255, 0.28);
  --line-strong: rgba(157, 122, 255, 0.44);
  --text: #eef3ff;
  --muted: #bcc7eb;
  --shadow: 0 20px 56px rgba(8, 14, 44, 0.62);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--iuve-font-sans);
  background: var(--auth-bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(110deg, rgba(140, 114, 255, 0) 44%, rgba(140, 114, 255, 0.12) 64%, rgba(93, 231, 255, 0.18) 100%),
    radial-gradient(900px 380px at 76% 100%, rgba(239, 90, 255, 0.14), transparent 68%);
}

.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: linear-gradient(160deg, rgba(18, 27, 70, 0.82), rgba(17, 20, 58, 0.72));
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  backdrop-filter: blur(12px);
}

.auth-card::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -120px;
  top: -140px;
  border-radius: 999px;
  background: radial-gradient(circle at 28% 28%, rgba(109, 164, 255, 0.26), rgba(93, 231, 255, 0.15) 48%, rgba(154, 107, 255, 0.2) 70%, transparent 76%);
  pointer-events: none;
}

.auth-card::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(93, 231, 255, 0), rgba(109, 164, 255, 0.55), rgba(154, 107, 255, 0.64), rgba(93, 231, 255, 0));
}

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

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

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

.subtitle {
  margin: 8px 0 22px;
  color: var(--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: #d9e2ff;
}

input {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  background: rgba(17, 23, 63, 0.9);
  color: #eef3ff;
}

input::placeholder {
  color: #98a6d6;
}

input:focus {
  outline: 0;
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(109, 164, 255, 0.2);
}

button {
  border: 0;
  background: linear-gradient(130deg, #4f89ff 0%, #5f6fff 46%, #8d5dff 78%, #4dd8ff 100%);
  color: #ffffff;
  border-radius: 11px;
  padding: 11px 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(68, 96, 210, 0.34);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(94, 123, 255, 0.42);
}

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

.links a {
  color: #93b2ff;
  text-decoration: none;
  font-size: 14px;
}

.links a:hover {
  color: #c5d4ff;
}

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

.social-auth-title {
  margin: 0;
  font-size: 13px;
  color: var(--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(--line);
  background: rgba(24, 33, 82, 0.82);
  color: #e9eeff;
}

.social-google {
  background: rgba(31, 43, 100, 0.78);
}

.social-facebook {
  background: linear-gradient(140deg, #2f6efe, #3f84ff);
  color: #ffffff;
  border-color: rgba(120, 150, 255, 0.58);
}

.social-github {
  background: rgba(93, 231, 255, 0.13);
  color: #bcecff;
  border-color: rgba(93, 231, 255, 0.42);
}

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

.alert.error {
  background: rgba(120, 22, 40, 0.35);
  border: 1px solid rgba(255, 102, 132, 0.45);
  color: #ffd5df;
}

.alert.info {
  background: rgba(29, 65, 144, 0.34);
  border: 1px solid rgba(132, 173, 255, 0.44);
  color: #dce9ff;
}

.form-section {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(165deg, rgba(34, 45, 105, 0.58), rgba(23, 30, 72, 0.5));
}

.form-section-title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: #edf2ff;
}

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

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #d6e1ff;
}

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

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

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