/* ============================================================
   AUTH — pages login.html et register.html
   Mise en page : photo pleine hauteur à gauche, formulaire à droite.
   ============================================================ */

.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth__photo { background: url("../images/brand/arrival-hero.webp") center / cover no-repeat; }
.auth__panel { display: flex; flex-direction: column; padding: 24px 72px 40px; }
.auth__top { display: flex; align-items: flex-start; justify-content: space-between; }
.auth__logo img { width: 161px; height: 55px; object-fit: contain; }
.auth__title { font-size: 28px; color: var(--ink-strong); margin: 20px 0 16px; }
.auth__form { display: flex; flex-direction: column; gap: 8px; }

/* Champ style "Material filled" */
.field { display: block; background: var(--grey-50); border-radius: var(--radius-sm) var(--radius-sm) 0 0; padding: 8px 16px 6px; position: relative; }
.field__label { display: block; font-size: 12px; color: var(--primary); }
.field__label b { color: var(--danger); font-weight: 400; }
.field input, .field select { width: 100%; border: 0; background: transparent; font: inherit; font-size: 16px; padding: 6px 0 4px; color: var(--ink); outline: none; }
.field input::placeholder { color: var(--grey-500); }
.field:focus-within { background: var(--primary-soft); }
.field__eye { position: absolute; right: 12px; bottom: 12px; width: 24px; height: 24px; color: var(--ink); }
.field--phone { display: grid; grid-template-columns: 56px 1fr; column-gap: 8px; }
.field--phone .field__label { grid-column: 1 / -1; }
.field--phone .field__prefix { padding: 6px 0 4px; font-size: 16px; }
.auth__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; font-size: 14px; }
.check { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--primary-dark); margin: 0; }
.auth__link { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.auth__submit { align-self: flex-end; margin-top: 20px; min-width: 226px; border-radius: 10px; }
.auth__spacer { flex: 1; min-height: 40px; }
.auth__google { width: 100%; border: 1px solid var(--grey-200); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-card); padding: 12px; font-size: 18px; font-weight: 400; color: var(--grey-700); display: flex; align-items: center; justify-content: center; gap: 12px; }
.auth__google svg { width: 24px; height: 24px; }
.auth__switch { text-align: center; font-size: 14px; margin-top: 48px; }
.auth__switch a { margin-left: 8px; }
.auth__legal { font-size: 13px; line-height: 1.4; color: var(--grey-700); margin-top: 16px; }
.auth__legal a { color: var(--primary); text-decoration: underline; }
.auth__required { font-size: 12px; color: var(--grey-700); margin-top: 8px; }
.auth__required b { color: var(--danger); font-weight: 400; }
.auth__grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.auth__intro { color: var(--grey-700); font-size: 16px; line-height: 1.5; margin-bottom: 20px; }
.auth__hint, .auth__assist { color: var(--grey-700); font-size: 14px; line-height: 1.5; }
.auth__hint { margin: 2px 0 8px; }
.auth__assist { margin-top: 18px; }
.auth__message { padding: 12px 16px; border-radius: var(--radius); background: var(--yellow-soft); color: var(--ink-strong); font-size: 14px; }
.auth__message[hidden] { display: none; }
.auth__submit:disabled { cursor: wait; opacity: .7; }
.account-page { min-height: 100vh; background: var(--grey-50); }
.account-header { background: var(--white); border-bottom: 1px solid var(--grey-200); }
.account-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 82px; gap: 20px; }
.account-main { padding-top: 72px; padding-bottom: 72px; }
.account-main[hidden] { display: none; }
.account-card { max-width: 650px; margin: auto; padding: 48px; border: 1px solid var(--grey-200); border-radius: var(--radius-lg); background: var(--white); }
.account-card__eyebrow { color: var(--peach); font-family: var(--font-heading); font-weight: 800; }
.account-card h1 { margin: 10px 0 12px; color: var(--primary-dark); font-size: clamp(30px, 4vw, 44px); }
.account-card p { color: var(--grey-700); }
.account-card dl { margin: 32px 0; padding-top: 20px; border-top: 1px solid var(--grey-200); }
.account-card dt { font-size: 13px; color: var(--grey-700); }
.account-card dd { font-size: 18px; color: var(--primary-dark); overflow-wrap: anywhere; }

@media (max-width: 991px) {
  .auth { grid-template-columns: 1fr; }
  .auth__photo { display: none; }
  .auth__panel { padding: 20px 20px 32px; }
  .auth__submit { align-self: stretch; }
  .auth__grid-2 { grid-template-columns: 1fr; }
  .account-card { padding: 28px; }
}
