/* Auth pages — Login & Register — Premium */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --auth-font: 'Outfit', sans-serif;
  --auth-bg: #f8f7f5;
  --auth-surface: #ffffff;
  --auth-border: #e8e6e3;
  --auth-text: #1a1a1a;
  --auth-muted: #737373;
  --auth-accent: #0f766e;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  font-family: var(--auth-font);
  background: var(--auth-bg);
  -webkit-font-smoothing: antialiased;
}

.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}

.auth-left {
  width: 420px;
  max-width: 100%;
  background: var(--auth-surface);
  padding: 3rem 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--auth-border);
}

.auth-right {
  flex: 1;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.5) 0%, rgba(13, 93, 86, 0.55) 100%),
    url('/images/auth-bg.png') center center / cover no-repeat;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-cta {
  max-width: 560px;
  text-align: center;
  color: #ecfeff;
  background: rgba(6, 95, 70, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  padding: 2rem 2.2rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(2px);
}

.auth-cta h2 {
  margin: 0 0 0.65rem;
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.auth-cta p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.6;
  color: rgba(236, 254, 255, 0.95);
}

.auth-brand {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: var(--auth-text);
  margin-bottom: 2.5rem;
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--auth-text);
  margin: 0 0 0.35rem;
}

.auth-subtitle {
  font-size: 0.9375rem;
  color: var(--auth-muted);
  margin: 0 0 2rem;
  line-height: 1.5;
}

.auth-form label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--auth-muted);
  margin-bottom: 0.4rem;
}

.auth-form input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  font-size: 0.9375rem;
  font-family: var(--auth-font);
  background: #fff;
  border: 1px solid var(--auth-border);
  border-radius: 6px;
  color: var(--auth-text);
}

.auth-form input:focus {
  outline: none;
  border-color: var(--auth-accent);
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.12);
}

.auth-form .mb {
  margin-bottom: 1.25rem;
}

.auth-error {
  min-height: 1.25rem;
  font-size: 0.875rem;
  color: #b91c1c;
  margin-bottom: 1rem;
}

.auth-btn {
  width: 100%;
  padding: 0.7rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--auth-font);
  background: var(--auth-accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.auth-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.auth-link {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.65rem;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: var(--auth-accent);
  border: 1px solid var(--auth-accent);
  border-radius: 6px;
}
.auth-link:hover {
  background: #0d5d56;
  border-color: #0d5d56;
}

.auth-hint {
  font-size: 0.8125rem;
  color: var(--auth-muted);
  margin-top: 1.5rem;
  line-height: 1.5;
}

.auth-divider {
  position: relative;
  text-align: center;
  margin: 1rem 0 0.85rem;
}
.auth-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid var(--auth-border);
}
.auth-divider span {
  position: relative;
  background: var(--auth-surface);
  padding: 0 0.5rem;
  font-size: 0.75rem;
  color: var(--auth-muted);
}
.social-auth {
  display: grid;
  gap: 0.5rem;
}
.social-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.62rem 0.8rem;
  border-radius: 6px;
  border: 1px solid var(--auth-border);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: #334155;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
}
.social-btn i {
  font-size: 1rem;
  line-height: 1;
}
.social-google {
  border-color: #dadce0;
  background: #ffffff;
  color: #1f1f1f;
  box-shadow: 0 4px 10px rgba(60, 64, 67, 0.15);
}
.social-google i {
  background: linear-gradient(90deg, #4285f4 0 25%, #ea4335 25% 50%, #fbbc05 50% 75%, #34a853 75% 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}
.social-facebook {
  border-color: #1f4ed8;
  background: linear-gradient(120deg, #1877f2, #1f4ed8);
}
.social-twitter {
  border-color: #111827;
  background: linear-gradient(120deg, #111827, #1f2937);
}
.social-btn.is-disabled {
  opacity: 0.5;
  pointer-events: none;
  filter: grayscale(0.25);
}

.auth-credit {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--auth-muted);
}
.auth-credit a {
  color: var(--auth-accent);
  text-decoration: none;
  font-weight: 600;
}
.auth-credit a:hover {
  text-decoration: underline;
}

@media (max-width: 992px) {
  .auth-right { display: none; }
  .auth-left { width: 100%; border-right: 0; padding: 2rem 1.5rem; }
}
