/* Login / Sign up — mockup tokens (mirror of laravel/app/public/css/auth.css) */
:root {
  --auth-primary: #0061ff;
  --auth-primary-hover: #0052d6;
  --auth-navy: #1a1d21;
  --auth-grey: #6c757d;
  --auth-placeholder: #adb5bd;
  --auth-border: #dee2e6;
  --auth-error: #dc3545;
  --auth-card-bg: #ffffff;
  --auth-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  --auth-radius-card: 20px;
  --auth-radius-input: 8px;
  --auth-font: "Inter", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body.auth-modern-page {
  margin: 0;
  min-height: 100vh;
  font-family: var(--auth-font);
  color: var(--auth-navy);
  background-color: #0f172a;
  background-image: linear-gradient( rgba(15, 23, 42, 0.58), rgba(15, 23, 42, 0.93) ), url("../image/login.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.auth-modern-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.auth-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
}

.auth-blob--1 {
  width: 280px;
  height: 280px;
  background: #b8d4ff;
  top: -80px;
  left: -60px;
}

.auth-blob--2 {
  width: 220px;
  height: 220px;
  background: #cfe0ff;
  bottom: 10%;
  right: -40px;
}

.auth-blob--3 {
  width: 160px;
  height: 160px;
  background: #dbeafe;
  top: 40%;
  left: 15%;
}

.auth-modern-bg .auth-blob {
  opacity: 0.18;
}

.auth-modern {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-modern-inner {
  width: 100%;
  max-width: 450px;
  /* display: grid; */
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.auth-hero-logo {
  display: inline-block;
  margin-bottom: .25rem;
  line-height: 0;
}

.auth-hero-logo img {
  height: auto;
  max-height: 52px;
  width: auto;
  max-width: min(220px, 70vw);
  object-fit: contain;
  vertical-align: middle;
}

.auth-modern-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.auth-modern-hero p {
  margin: 16px 0 0;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.5;
  max-width: 360px;
}

.auth-modern-hero {
  position: sticky;
  top: clamp(30%, 4vh, 40px);
  align-self: start;
  z-index: 2;
}

.auth-modern-card {
  background: var(--auth-card-bg);
  border-radius: var(--auth-radius-card);
  box-shadow: var(--auth-shadow);
  padding: 20px 36px 28px;
  border: 1px solid rgba(222, 226, 230, 0.6);
  text-align: center;
}

.auth-modern-card > h2 {
  margin: 0;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--auth-navy);
}

.auth-modern-lead {
  margin:6px 0 20px;
  text-align: center;
  font-size: 0.7rem;
  color: var(--auth-grey);
  line-height: 1.55;
}

.auth-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.auth-field {
  margin-bottom: 16px;
}

.auth-input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--auth-border);
  border-radius: var(--auth-radius-input);
  padding: 0 14px;
  font-size: 0.75rem;
  color: var(--auth-navy);
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-input::placeholder {
  color: var(--auth-placeholder);
}

.auth-input:focus {
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 3px rgba(0, 97, 255, 0.15);
}

.auth-input.is-invalid {
  border-color: var(--auth-error);
}

.auth-input.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

.auth-password-wrap {
  position: relative;
}

.auth-password-wrap .auth-input {
  padding-right: 48px;
}

.auth-toggle-pw {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  padding: 6px;
  cursor: pointer;
  color: var(--auth-grey);
  line-height: 0;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.auth-toggle-pw:hover {
  color: var(--auth-primary);
  background: rgba(0, 97, 255, 0.06);
}

.auth-field-msg {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 8px 0 0;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--auth-error);
  line-height: 1.35;
}

.auth-field-msg svg {
  flex-shrink: 0;
  margin-top: 1px;
}

.auth-hint {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 10px 0 0;
  font-size: 0.7rem;
  color: #5a7aa8;
  line-height: 1.45;
  text-align: start;
}

.auth-hint svg {
  flex-shrink: 0;
  color: var(--auth-primary);
  opacity: 0.85;
  margin-top: 2px;
}

.auth-checkbox-row {
  margin: 18px 0 8px;
  text-align: start;
}

.auth-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--auth-navy);
  user-select: none;
}

.auth-checkbox input {
  width: 16px;
  height: 16px;
  accent-color: var(--auth-primary);
  cursor: pointer;
}

.auth-checkbox a {
  color: var(--auth-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-checkbox a:hover {
  color: var(--auth-primary-hover);
}

.auth-forgot {
  text-align: right;
  margin: -8px 0 16px;
}

.auth-forgot a {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--auth-primary);
  text-decoration: none;
}

.auth-forgot a:hover {
  text-decoration: underline;
}

.auth-btn-primary {
  width: 100%;
  height: 42px;
  margin-top: 8px;
  border: 0;
  border-radius: var(--auth-radius-input);
  background: var(--auth-primary);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.05s;
}

.auth-btn-primary:hover {
  background: var(--auth-primary-hover);
}

.auth-btn-primary:active {
  transform: translateY(1px);
}

.auth-legal {
  margin: 18px 0 0;
  text-align: center;
  font-size: 0.58rem;
  color: var(--auth-grey);
  line-height: 1.5;
}

.auth-legal a,
.auth-legal strong {
  color: var(--auth-navy);
  font-weight: 700;
  text-decoration: none;
}

.auth-legal a:hover {
  text-decoration: underline;
}

.auth-switch {
  margin: 20px 0 0;
  text-align: center;
  font-size: 0.72rem;
  color: var(--auth-grey);
}

.auth-switch a {
  color: var(--auth-primary);
  font-weight: 700;
  text-decoration: underline;
}

.auth-switch a:hover {
  opacity: 0.9;
}

.auth-sep {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 15px 0;
  color: var(--auth-placeholder);
  font-size: 0.85rem;
  font-weight: 600;
}

.auth-sep::before,
.auth-sep::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--auth-border);
}

a.auth-google-btn,
.auth-google-btn {
  width: 100%;
  height: 48px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--auth-border);
  border-radius: var(--auth-radius-input);
  background: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--auth-navy);
  cursor: pointer;
  opacity: 1;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

a.auth-google-btn:hover,
.auth-google-btn:hover {
  background: #f8f9fa;
  border-color: #cbd5e1;
}

a.auth-google-btn:focus-visible {
  outline: none;
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 3px rgba(0, 97, 255, 0.2);
}

.auth-footer-note {
  margin: 20px 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--auth-grey);
}

.auth-home-link {
  color: var(--auth-primary);
  font-weight: 600;
  text-decoration: none;
}

.auth-home-link:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .auth-modern-inner {
    grid-template-columns: 1fr;
    max-width: 440px;
  }

  .auth-modern-hero {
    text-align: center;
    margin-bottom: 8px;
  }

  .auth-modern-hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .auth-modern-card {
    padding: 28px 22px 22px;
  }
}

@media (max-width: 480px) {
  .auth-modern {
    padding: 24px 14px;
  }

  .auth-modern-hero h1 {
    font-size: 1.75rem;
  }
}
