/* =============================================================
   UGCPro.social — Auth Pages CSS
   Fonts: Noto Sans (body) · Dancing Script (logo)
   Icons: Font Awesome 6
   ============================================================= */

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

body.auth-page {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--gray-900);
  background: var(--gray-50);
  min-height: 100vh;
}

.auth-split { display: flex; min-height: 100vh; }

.auth-brand {
  display: flex; align-items: center; justify-content: center;
  width: 42%; min-height: 100vh;
  background: linear-gradient(145deg, var(--brand-navy) 0%, #1e4080 60%, var(--brand-purple) 100%);
  padding: 3rem 2.5rem; position: sticky; top: 0;
}

.auth-brand__inner { max-width: 360px; color: #fff; }

.auth-logo {
  display: flex; align-items: center; gap: .65rem;
  text-decoration: none; margin-bottom: 3rem;
}

.auth-logo__mark {
  width: 40px; height: 40px; background: var(--brand-orange);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: #fff;
}

.auth-logo__name {
  font-family: var(--font-display); font-size: 1.65rem;
  font-weight: 700; color: #fff; letter-spacing: .01em; line-height: 1;
}

.auth-logo__name span {
  font-family: var(--font-body); font-weight: 300;
  font-size: .95rem; color: var(--brand-sky); letter-spacing: .03em;
}

.auth-brand__headline {
  font-size: 2rem; font-weight: 800;
  line-height: 1.2; letter-spacing: -.03em; margin-bottom: 1rem;
}

.auth-brand__sub { font-size: .93rem; opacity: .8; margin-bottom: 2rem; line-height: 1.75; }

.auth-brand__perks { list-style: none; display: flex; flex-direction: column; gap: .8rem; margin-bottom: 2.5rem; }

.auth-brand__perks li {
  font-size: .88rem; opacity: .9;
  display: flex; align-items: center; gap: .65rem;
}

.auth-brand__perks li i { color: var(--brand-amber); width: 16px; text-align: center; }
.auth-brand__credit { font-size: .78rem; opacity: .5; margin-top: 2rem; }
.auth-brand__credit strong { opacity: 1; color: var(--brand-sky); }

.auth-form-panel {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 3rem 2rem; overflow-y: auto;
}

.auth-form-wrap { width: 100%; max-width: 440px; }

.auth-form-title { font-size: 1.6rem; font-weight: 800; letter-spacing: -.025em; margin-bottom: .4rem; }
.auth-form-sub   { color: var(--gray-500); font-size: .9rem; margin-bottom: 1.75rem; }
.auth-form-sub a { color: var(--brand-orange); text-decoration: none; font-weight: 600; }

/* Flash */
.flash {
  padding: .85rem 1rem; border-radius: var(--radius-md); font-size: .88rem;
  margin-bottom: 1.25rem; display: flex; align-items: flex-start;
  gap: .65rem; line-height: 1.5;
}
.flash i { flex-shrink: 0; margin-top: .15rem; }
.flash--success { background: #EDF7F0; color: #1B6B3A; border: 1px solid #B8DEC8; }
.flash--error   { background: #FDF0EB; color: #8C1D0A; border: 1px solid #F0C4B0; }
.flash--info    { background: var(--brand-blue-light); color: #1A3F8C; border: 1px solid #C0D0F0; }
.flash--warning { background: var(--brand-amber-light); color: #7A5A00; border: 1px solid #F0D890; }

/* Plan selector */
.plan-selector { display: flex; gap: .6rem; margin-bottom: 1.5rem; flex-wrap: wrap; }

.plan-option {
  flex: 1; min-width: 100px;
  display: flex; flex-direction: column; align-items: center;
  padding: .75rem .5rem;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius-md);
  cursor: pointer; transition: border-color .15s, background .15s; user-select: none;
}

.plan-option input[type="radio"] { display: none; }
.plan-option--active { border-color: var(--brand-orange); background: var(--brand-orange-light); }
.plan-option__name  { font-size: .8rem; font-weight: 700; color: var(--gray-900); }
.plan-option__price { font-size: .75rem; color: var(--gray-500); margin-top: .15rem; }
.plan-option--active .plan-option__name { color: var(--brand-orange); }

/* Form groups */
.form-group { margin-bottom: 1.1rem; }

.form-group label {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .83rem; font-weight: 600; color: var(--gray-700); margin-bottom: .4rem;
}

.forgot-link { font-weight: 400; color: var(--gray-500); text-decoration: none; font-size: .82rem; }
.forgot-link:hover { color: var(--brand-orange); }

input[type="text"], input[type="email"], input[type="password"],
input[type="tel"], select, textarea {
  width: 100%; padding: .65rem .9rem;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius-md);
  font-size: .93rem; color: var(--gray-900); background: var(--white);
  outline: none; transition: border-color .15s, box-shadow .15s;
  font-family: var(--font-body);
}

input:focus, select:focus, textarea:focus {
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px var(--brand-orange-tint);
}

input::placeholder { color: var(--gray-300); }
.form-hint { font-size: .78rem; color: var(--gray-500); margin-top: .3rem; display: block; }

.input-prefix-wrap {
  display: flex; align-items: stretch;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius-md);
  overflow: hidden; transition: border-color .15s;
}
.input-prefix-wrap:focus-within { border-color: var(--brand-orange); box-shadow: 0 0 0 3px var(--brand-orange-tint); }
.input-prefix {
  padding: .65rem .75rem; background: var(--gray-50); color: var(--gray-500);
  font-size: .78rem; white-space: nowrap; border-right: 1.5px solid var(--gray-200);
  display: flex; align-items: center; font-family: var(--font-body);
}
.input-prefix-wrap input { border: none; border-radius: 0; box-shadow: none; flex: 1; min-width: 0; }
.input-prefix-wrap input:focus { border-color: transparent; box-shadow: none; }

.input-eye-wrap { position: relative; }
.input-eye-wrap input { padding-right: 2.8rem; }
.eye-toggle {
  position: absolute; right: .75rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--gray-400); padding: .2rem;
  display: flex; align-items: center; font-size: .95rem;
}
.eye-toggle:hover { color: var(--brand-orange); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1.4rem; border-radius: var(--radius-md);
  font-size: .92rem; font-weight: 700; cursor: pointer; border: none;
  text-decoration: none; transition: background .15s, box-shadow .15s, transform .1s;
  font-family: var(--font-body); letter-spacing: .01em; white-space: nowrap;
}
.btn i { font-size: .9em; }
.btn--primary { background: var(--brand-orange); color: #fff; box-shadow: 0 2px 8px rgba(206,66,12,.25); }
.btn--primary:hover { background: var(--primary-dark); box-shadow: 0 4px 16px rgba(206,66,12,.3); }
.btn--outline { background: transparent; color: var(--gray-900); border: 1.5px solid var(--gray-200); }
.btn--outline:hover { border-color: var(--brand-orange); color: var(--brand-orange); }
.btn--danger  { background: #FDF0EB; color: #8C1D0A; border: 1px solid #F0C4B0; }
.btn--danger:hover { background: var(--brand-orange); color: #fff; }
.btn--full { width: 100%; }
.btn--sm   { padding: .45rem .9rem; font-size: .82rem; }
.btn--xs   { padding: .3rem .7rem; font-size: .78rem; }
.btn:active { transform: scale(.98); }

.auth-legal { font-size: .78rem; color: var(--gray-400); text-align: center; margin-top: 1rem; line-height: 1.6; }
.auth-legal a { color: var(--gray-500); }

@media (max-width: 768px) {
  .auth-split { flex-direction: column; }
  .auth-brand { width: 100%; min-height: auto; padding: 2rem 1.5rem; position: static; }
  .auth-brand__headline { font-size: 1.6rem; }
  .auth-brand__perks { display: none; }
  .auth-logo { margin-bottom: 1.5rem; }
  .auth-form-panel { padding: 2rem 1.25rem; }
}
