/* ==========================================================================
   YANO STARS — FORMS + AUTH SHELL
   Shared by login, register, submit-entry, profile edit, admin forms.
   ========================================================================== */

/* ------------------------------ Flash messages ------------------------------ */
.flash {
  padding: 0.9rem 1.2rem; border-radius: var(--r-md); margin-bottom: 1rem;
  font-size: 0.9rem; font-weight: 600; border: 1px solid transparent;
}
.flash--success { background: rgba(46,204,113,0.1); color: #6ee7a8; border-color: rgba(46,204,113,0.3); }
.flash--error   { background: rgba(255,106,0,0.1); color: #ff9a52; border-color: rgba(255,106,0,0.35); }
.flash--info    { background: rgba(0,229,255,0.08); color: #7fefff; border-color: rgba(0,229,255,0.3); }

/* ------------------------------ Fields ------------------------------ */
.field { margin-bottom: 1.2rem; }
.field label {
  display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-secondary); margin-bottom: 0.5rem;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 0.95rem 1.1rem;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--r-md);
  color: var(--y-white); font-size: 1rem;
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), background var(--dur-base);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-muted); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--y-gold);
  box-shadow: 0 0 0 3px rgba(255,193,7,0.15);
  background: rgba(255,255,255,0.06);
}
.field textarea { min-height: 120px; resize: vertical; }
.field__hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.4rem; }
.field__error { font-size: 0.78rem; color: #ff9a52; margin-top: 0.4rem; }

/* Password toggle */
.field--password { position: relative; }
.field--password .toggle-pw {
  position: absolute; right: 0.9rem; top: 2.55rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em;
  color: var(--text-muted); text-transform: uppercase; cursor: pointer;
}
.field--password .toggle-pw:hover { color: var(--y-gold); }

/* ------------------------------ Auth shell ------------------------------ */
.auth {
  min-height: 100vh; display: grid; grid-template-columns: 1fr;
  background: var(--y-black) radial-gradient(ellipse at 70% 10%, #1c1405 0%, #0A0A0A 55%);
}
.auth__aside { display: none; }
.auth__main {
  display: flex; flex-direction: column; justify-content: center;
  padding: 2.5rem var(--gutter);
  min-height: 100vh;
}
.auth__card { width: 100%; max-width: 460px; margin-inline: auto; }
.auth__brand { display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: 2rem; }
.auth__brand img { width: 42px; height: 42px; }
.auth__brand span { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 0.06em; }
.auth__brand em { color: var(--y-gold); font-style: normal; }
.auth__title { font-family: var(--font-display); font-size: clamp(2.2rem, 6vw, 3rem); line-height: 1; margin-bottom: 0.6rem; }
.auth__subtitle { color: var(--text-secondary); margin-bottom: 2rem; }
.auth__footer { margin-top: 1.6rem; font-size: 0.9rem; color: var(--text-secondary); text-align: center; }
.auth__footer a { color: var(--y-gold); font-weight: 700; }
.auth__row { display: grid; gap: 1.2rem; }
@media (min-width: 520px) { .auth__row--2 { grid-template-columns: 1fr 1fr; } }

/* Split hero panel on wide screens */
@media (min-width: 960px) {
  .auth { grid-template-columns: 1.05fr 0.95fr; }
  .auth__aside {
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 3.5rem; position: relative; overflow: hidden;
    background:
      linear-gradient(180deg, rgba(10,10,10,0.4), rgba(10,10,10,0.9)),
      radial-gradient(ellipse at 30% 20%, rgba(255,193,7,0.16), transparent 60%);
    border-right: 1px solid var(--border-subtle);
  }
  .auth__aside-mark { width: 80px; height: 80px; }
  .auth__aside-headline {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 4vw, 4rem); line-height: 0.95; text-transform: uppercase;
  }
  .auth__aside-headline .text-gradient { display: block; }
  .auth__aside-sub { color: var(--text-secondary); max-width: 40ch; margin-top: 1rem; }
  .auth__aside-foot { font-size: 0.78rem; letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--text-muted); }
}
