/* public/css/auth.css */

/*
  IMPORTANT:
  Desktop header uses `position: fixed` with height: 81px (see public/css/app.css).
  So every page content MUST have top padding >= 81px, otherwise content will be hidden behind the header.
*/

.auth-page{
  padding-top: 96px;    /* 81px header + 15px breathing room */
  padding-bottom: 80px;
  min-height: 100vh;
}

.auth-container{
  max-width: 1280px;
}

/* ===== Select page layout ===== */
.auth-select-grid{
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 28px;
  align-items: start;
}

.auth-panel,
.auth-hero-card,
.auth-form-card{
  background: #0f0f0f;
  border: 1px solid rgba(220,219,219,.10);
  border-radius: 20px;
  overflow: hidden;
}

.auth-panel{
  padding: 34px 32px;
}

.auth-title{
  margin: 0 0 8px;
  font-family: "Gotham-Medium", Helvetica, Arial, sans-serif;
  font-size: 34px;
  letter-spacing: -0.45px;
  color: #dcdbdb;
}

.auth-subtitle{
  margin: 0 0 22px;
}

.auth-actions{
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.auth-btn-block{
  width: 100%;
  justify-content: center;
}

.auth-btn-secondary{
  background: transparent !important;
  border: 1px solid rgba(220,219,219,.20) !important;
  box-shadow: none !important;
  color: #dcdbdb !important;
}

.auth-btn-secondary .btn__label{
  color: #dcdbdb !important;
}

.auth-links{
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.auth-link{
  color: #f68627;
  text-decoration: none;
  font-family: "Gotham-Light", Helvetica, Arial, sans-serif;
  font-size: 14px;
}

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

.auth-link-muted{
  color: rgba(220,219,219,.75);
}

.auth-hero-card{
  display: grid;
  grid-template-rows: 220px auto;
}

.auth-hero-image{
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
}

.auth-hero-content{
  padding: 22px 22px 24px;
}

.auth-hero-title{
  margin: 0 0 8px;
  font-family: "Gotham-Medium", Helvetica, Arial, sans-serif;
  font-size: 20px;
  color: #dcdbdb;
}

/* ===== Forms ===== */
.auth-form-wrap{
  max-width: 820px;
  margin: 0 auto;
}

.auth-form-card{
  padding: 34px 32px;
}

.auth-form-title{
  margin: 0 0 6px;
  font-family: "Gotham-Medium", Helvetica, Arial, sans-serif;
  font-size: 28px;
  letter-spacing: -0.35px;
}

.auth-form-desc{
  margin: 0 0 22px;
}

.auth-grid-2{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.auth-field{
  display: grid;
  gap: 8px;
}

.auth-label{
  font-size: 13px;
  color: rgba(220,219,219,.85);
  font-family: "Gotham-Light", Helvetica, Arial, sans-serif;
}

.auth-input,
.auth-select{
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  background: #181818;
  border: 1px solid rgba(220,219,219,.10);
  color: #dcdbdb;
  outline: none;
  font-family: "Gotham-Light", Helvetica, Arial, sans-serif;
  font-size: 14px;
}

.auth-input:focus,
.auth-select:focus{
  border-color: rgba(246,134,39,.55);
  box-shadow: 0 0 0 4px rgba(246,134,39,.12);
}

.auth-select{
  appearance: none;
  -webkit-appearance: none;
  background-image: url("../assets/ico-chevron-down.svg");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px 16px;
  padding-right: 40px;
}

.auth-divider{
  height: 1px;
  background: rgba(220,219,219,.08);
  margin: 18px 0;
}

.auth-alert{
  border: 1px solid rgba(246,134,39,.35);
  background: rgba(246,134,39,.08);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 14px;
  color: #dcdbdb;
  font-size: 14px;
}

.auth-alert--danger{
  border-color: rgba(255,80,80,.35);
  background: rgba(255,80,80,.08);
}

.auth-alert ul{ margin: 8px 0 0 18px; }

.auth-submit-row{
  margin-top: 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.auth-hint{
  font-size: 13px;
  color: rgba(220,219,219,.70);
}

/* reCAPTCHA on small screens */
.g-recaptcha{ margin-top: 6px; }

@media (max-width: 980px){
  .auth-select-grid{ grid-template-columns: 1fr; }
  .auth-hero-card{ grid-template-rows: 200px auto; }
  .auth-grid-2{ grid-template-columns: 1fr; }

  /* mobile header layout is taller; keep safe offset */
  .auth-page{ padding-top: 110px; }
}

@media (max-width: 420px){
  .auth-panel, .auth-form-card{ padding: 24px 18px; }
  .auth-title{ font-size: 28px; }
}
