/* Aviatrip auth v1 — scoped to the four public authentication views. */
body.voyage.is-auth-page { background: #fff; padding: 0; }
.is-auth-page #main-content { padding: 0; }
.at-auth {
  --auth-ink: #102442; --auth-muted: #64758e; --auth-blue: #0757e7;
  --header-cloud: #f4f8ff; --header-ink: #152c4d; --header-line: #dbe5f3;
  --header-ice: #e9f2ff; --header-blue: #0757e7;
  display: grid; grid-template-columns: minmax(0, 47fr) minmax(0, 53fr);
  min-height: 100vh; min-height: 100svh; color: var(--auth-ink); background: #fff;
  font-family: var(--voyage-sans); font-size: 14px; line-height: 1.55;
}
.at-auth a { color: inherit; text-decoration: none; }
.at-auth button, .at-auth input { font: inherit; }
.at-auth svg { width: 20px; height: 20px; flex-shrink: 0; }
.at-auth__left { display: flex; flex-direction: column; min-width: 0; padding: 26px clamp(24px, 3.2vw, 58px) 22px; }
.at-auth__header, .at-auth__footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-shrink: 0; }
.at-auth__brand { display: block; width: clamp(158px, 13.6vw, 206px); flex-shrink: 0; }
.at-auth__brand .av835-logo { display: block; width: 100%; }
.at-auth__brand .av835-logo__svg { display: block; width: 100%; height: auto; max-width: none; }
.at-auth__back { display: inline-flex; align-items: center; gap: 7px; color: var(--auth-muted) !important; font-size: 12px; font-weight: 600; }
.at-auth__back > span:first-child { display: inline-flex; transform: rotate(180deg); }
.at-auth__back svg { width: 16px; height: 16px; }
.at-auth__back:hover { color: var(--auth-blue) !important; }
.at-auth__body { display: flex; flex: 1 0 auto; align-items: center; justify-content: center; padding: clamp(30px, 5vh, 56px) 0; }
.at-auth__content { width: 100%; max-width: 430px; min-width: 0; }
.at-auth__content:focus { outline: none; }
.at-auth--register .at-auth__content { max-width: 470px; }
.at-auth--register .at-auth__body { padding-block: 22px; }
.at-auth--register .at-auth__left { padding-block: 22px 18px; }
.at-auth__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 28px; border: 1px solid #edf1f7; border-radius: 15px; background: #f0f4fa; }
.at-auth__tabs a { display: flex; align-items: center; justify-content: center; min-height: 41px; padding: 7px 12px; border-radius: 11px; color: #60718b; font-size: 13px; font-weight: 650; }
.at-auth__tabs a[aria-current] { background: #fff; color: var(--auth-blue); box-shadow: 0 2px 5px #1a3c6a14, 0 0 0 1px #dfe7f226; }
.at-auth__tabs a:not([aria-current]):hover { color: var(--auth-blue); background: #e8eff9; }
.at-auth__heading { margin: 0 0 26px; }
.voyage #main-content .at-auth__heading h1 { margin: 0; max-width: 15em; color: var(--auth-ink); font-family: var(--voyage-sans); font-size: clamp(26px, 2.15vw, 34px); line-height: 1.38; font-weight: 750; letter-spacing: -.035em; }
.at-auth__heading p { margin: 9px 0 0; color: var(--auth-muted); font-size: 13px; line-height: 1.7; }
.at-auth--register .at-auth__tabs { margin-bottom: 20px; }
.at-auth--register .at-auth__heading { margin-bottom: 19px; }
.voyage #main-content .at-auth--register .at-auth__heading h1 { font-size: 28px; }
.at-auth__form { display: grid; gap: 17px; margin: 0; }
.at-auth--register .at-auth__form { gap: 12px; }
.at-auth__field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; min-width: 0; }
.at-field { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.at-field--wide { grid-column: 1 / -1; }
.at-field > label { display: block; color: #2d405d; font-size: 12px; font-weight: 650; line-height: 1.4; }
.at-field__control { position: relative; display: flex; align-items: center; gap: 10px; min-height: 53px; padding: 5px 9px; border: 1px solid #d7e1ee; border-radius: 14px; background: linear-gradient(180deg, #fff 5%, #f9fbff 100%); box-shadow: 0 2px 3px #193c6c03, inset 0 1px 0 #fff; transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease; }
.at-field__control:hover { border-color: #abc5e5; }
.at-field__control:focus-within { border-color: #4a8cff; background: #fff; box-shadow: 0 0 0 4px #1468ef0c, 0 4px 12px #1468ef08; }
.at-field__icon { display: grid; place-items: center; width: 31px; height: 31px; flex: 0 0 31px; border-radius: 9px; color: #617fa4; background: #edf3fb; transition: color .18s ease, background-color .18s ease; }
.at-field__icon svg { width: 17px; height: 17px; stroke-width: 1.65; }
.at-field__control:focus-within .at-field__icon { color: #fff; background: #1768e8; }
.at-auth .at-field__control input { display: block; width: 100%; min-width: 0; flex: 1 1 0%; height: 39px; margin: 0; padding: 7px 2px; border: 0; border-radius: 6px; outline: none; color: #132d4c; background: transparent; box-shadow: none; font-size: 14px; font-weight: 450; line-height: normal; caret-color: var(--auth-blue); text-overflow: ellipsis; }
.at-auth .at-field__control input:focus, .at-auth .at-field__control input:focus-visible { border: 0; outline: 0; box-shadow: none; }
.at-auth .at-field__control input::placeholder { color: #7d8ea6; opacity: 1; font-size: 12px; font-weight: 400; }
.at-field__control input:-webkit-autofill { -webkit-text-fill-color: #132d4c; -webkit-box-shadow: 0 0 0 60px #f4f8ff inset; }
.at-field__control:has(input:user-invalid), .at-field.is-invalid .at-field__control { border-color: #d97a84; box-shadow: 0 0 0 3px #d9435b08; }
.at-field.is-invalid .at-field__icon { background: #fff0f2; color: #b62c43; }
.at-field__reveal { position: relative; display: none; flex: 0 0 40px; width: 40px; height: 40px; margin: -1px -3px -1px 0; padding: 0; place-items: center; border: 0; border-radius: 10px; background: transparent; color: #647d9d; }
.at-auth[data-auth-ready] .at-field__reveal { display: grid; }
.at-field__reveal svg { width: 19px; height: 19px; }
.at-field__reveal:hover, .at-field__reveal[aria-pressed="true"] { color: var(--auth-blue); background: #e9f2ff; }
.at-field__eye-slash { position: absolute; width: 23px; height: 1.5px; border-radius: 2px; background: currentColor; transform: rotate(-45deg) scaleX(0); box-shadow: 0 -2px 0 #e9f2ff; transition: transform .18s ease; }
.at-field__reveal[aria-pressed="true"] .at-field__eye-slash { transform: rotate(-45deg) scaleX(1); }
.at-field__hint { color: var(--auth-muted); font-size: 11px; line-height: 1.5; }
.at-auth--register .at-field { gap: 5px; }
.at-auth--register .at-field__control { min-height: 48px; padding-block: 3px; }
.at-auth--register .at-field__control input { height: 39px; }
.at-auth__forgot { justify-self: end; margin-top: -3px; color: var(--auth-blue) !important; font-size: 12px; font-weight: 600; }
.at-auth__forgot:hover, .at-auth__switch a:hover { text-decoration: underline; text-underline-offset: 4px; }
.at-auth .at-auth__submit { position: relative; display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; min-height: 49px; padding: 12px 18px; border: 1px solid #135ce0; border-radius: 13px; color: #fff; background: linear-gradient(105deg, #075ceb, #0851cf); box-shadow: 0 5px 13px #1558ce24, inset 0 1px 0 #ffffff24; font-size: 13px; font-weight: 650; line-height: 1.5; text-align: center; transition: box-shadow .18s ease, transform .18s ease, background-color .18s ease; }
.at-auth__submit svg { width: 18px; height: 18px; transition: transform .18s ease; }
.at-auth__submit:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 8px 19px #1558ce30; background: #064cc5; }
.at-auth__submit:not(:disabled):hover svg { transform: translateX(3px); }
.at-auth__submit:not(:disabled):active { transform: translateY(0); }
.at-auth__submit:disabled { cursor: wait; opacity: .8; }
.at-auth__spinner { display: none; width: 17px; height: 17px; border: 2px solid #ffffff55; border-top-color: #fff; border-radius: 50%; animation: at-auth-spin .75s linear infinite; }
.at-auth__submit[aria-busy="true"] .at-auth__spinner { display: block; }
.at-auth__submit[aria-busy="true"] > svg { display: none; }
.at-auth__switch { margin: 21px 0 0; padding-top: 19px; border-top: 1px solid #e8edf5; color: var(--auth-muted); font-size: 12px; text-align: center; line-height: 1.7; }
.at-auth__switch a { display: inline-block; margin-inline-start: 3px; color: var(--auth-blue); font-weight: 650; }
.at-auth__types-heading { margin-bottom: 8px; font-size: 12px; font-weight: 650; }
.at-auth--register .at-auth__switch { margin-top: 17px; padding-top: 15px; }
.at-auth__types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 22px; }
.at-auth__types a { display: flex; align-items: center; min-width: 0; min-height: 43px; gap: 9px; padding: 9px 10px; border: 1px solid #d9e3f0; border-radius: 12px; color: #293f60; background: #fbfcff; font-size: 11px; font-weight: 600; line-height: 1.5; transition: border-color .18s ease, background-color .18s ease, transform .18s ease; }
.at-auth__types a > svg { width: 19px; height: 19px; color: #216be0; }
.at-auth__types a > span { min-width: 0; overflow-wrap: anywhere; }
.at-auth__types a:hover { border-color: #95b9ef; background: #f1f7ff; transform: translateY(-1px); }
.at-auth__types a[aria-current] { border-color: #4b8af1; background: linear-gradient(110deg, #eef5ff, #e4efff); color: #144da2; box-shadow: 0 0 0 2px #1468ef05; }
.at-auth__types i { display: grid; place-items: center; width: 17px; height: 17px; flex: 0 0 17px; margin-inline-start: auto; border-radius: 50%; background: #0861e7; color: #fff; }
.at-auth__types i svg { width: 11px; height: 11px; stroke-width: 2.4; }
.at-auth__footer { margin-top: auto; gap: 12px; color: var(--auth-muted); }
.at-auth__footer small { font-size: 11px; white-space: nowrap; }
.at-auth__return { display: inline-flex; align-items: center; min-height: 40px; margin-bottom: 23px; gap: 6px; color: var(--auth-muted) !important; font-size: 12px; }
.at-auth__return:hover { color: var(--auth-blue) !important; }
.at-auth__return svg { width: 15px; height: 15px; }
.at-auth__recovery-icon { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 21px; border-radius: 18px; color: #1467e7; background: linear-gradient(145deg, #f1f7ff, #e4efff); border: 1px solid #d8e8ff; box-shadow: inset 0 1px 0 #fff; }
.at-auth__recovery-icon svg { width: 27px; height: 27px; }
.at-auth__hint { display: flex; align-items: start; gap: 9px; margin: 13px 0 0; color: var(--auth-muted); font-size: 11px; line-height: 1.7; }
.at-auth__hint svg { width: 16px; height: 16px; margin-top: 1px; color: #7691b3; }
.at-auth__form .at-auth__hint { margin: 0; }
.at-notice { display: flex; align-items: start; gap: 10px; margin: 0 0 20px; padding: 13px; border: 1px solid #c6e9da; border-radius: 13px; background: #f0faf5; color: #245f49; }
.at-notice > span { display: grid; place-items: center; flex-shrink: 0; width: 25px; height: 25px; border-radius: 8px; background: #d8f0e5; }
.at-notice svg { width: 15px; height: 15px; }
.at-notice p { margin: 2px 0 0; font-size: 12px; line-height: 1.65; }
.at-notice--error { border-color: #f1ccd2; background: #fff6f7; color: #9a3847; }
.at-notice--error > span { background: #fbe2e7; }
.at-auth__visual { display: none; }
@media (min-width: 900px) {
  .at-auth__visual { position: sticky; top: 16px; align-self: start; display: flex; flex-direction: column; justify-content: space-between; isolation: isolate; min-height: 520px; height: calc(100vh - 32px); height: calc(100svh - 32px); margin: 16px 16px 16px 0; padding: clamp(28px, 3.5vw, 58px); overflow: hidden; border-radius: 27px; color: #fff; background: #174b74; }
  .at-auth__photo { position: absolute; inset: 0; z-index: -2; background: url('../images/auth/santorini-v1.webp') center 54% / cover no-repeat; }
  .at-auth__visual::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #12385e12 0%, transparent 35%, #092e5840 59%, #06294bdc 83%, #062542 100%); }
  .at-auth__badge { display: inline-flex; align-items: center; align-self: flex-start; gap: 10px; max-width: 100%; padding: 9px 14px; border: 1px solid #ffffff4d; border-radius: 15px; color: #fff; background: #19466624; backdrop-filter: blur(8px); font-size: 12px; font-weight: 600; }
  .at-auth__badge svg { width: 26px; height: 26px; }
  .at-auth__visual-content { padding-top: 110px; }
  .voyage #main-content .at-auth__visual h2 { display: grid; gap: 2px; margin: 0; color: #fff; font-family: var(--voyage-sans); font-size: clamp(31px, 3.05vw, 49px); font-weight: 750; line-height: 1.3; letter-spacing: -.03em; }
  .at-auth__visual-content > p { margin: 14px 0 0; color: #eaf3ff; font-size: clamp(13px, 1.15vw, 17px); line-height: 1.6; }
  .at-auth__features { display: grid; grid-template-columns: .85fr .8fr 1.35fr; gap: 16px; margin: 40px 0 0; padding: 0; list-style: none; }
  .at-auth__features li { display: flex; flex-direction: column; align-items: flex-start; justify-content: start; gap: 9px; min-width: 0; color: #fff; font-size: clamp(11px, .94vw, 14px); font-weight: 500; line-height: 1.4; }
  .at-auth__features li + li { padding-inline-start: 23px; border-inline-start: 1px solid #c8e0f94d; }
  .at-auth__features svg { width: 27px; height: 27px; }
}
.at-auth .voyage-language { position: relative; margin: 0; font-size: 12px; }
.at-auth .voyage-language__trigger { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 7px 10px; border: 1px solid #dbe6f3; border-radius: 13px; background: #f8faff; color: #365173; list-style: none; cursor: pointer; }
.at-auth .voyage-language__trigger::-webkit-details-marker { display: none; }
.at-auth .voyage-language__current { display: inline; font-size: 11px; font-weight: 600; }
.at-auth .voyage-language__flag { position: static; display: inline-flex; width: 23px; height: 23px; flex: 0 0 23px; padding: 0; overflow: hidden; border-radius: 50%; box-shadow: 0 0 0 1px #d6e1f0; }
.at-auth .voyage-language__flag > svg { display: block; width: 100%; height: 100%; max-width: 100%; border-radius: 50%; }
.at-auth .voyage-language__chevron svg { width: 13px; height: 13px; }
.at-auth .voyage-language__panel { inset: auto 0 calc(100% + 10px) auto; position: absolute; width: min(340px, calc(100vw - 32px)); max-height: min(480px, calc(100dvh - 100px)); z-index: 60; color: #152c4d; background: #f4f8ff; border: 1px solid #d0dff1; padding: 12px; border-radius: 17px; box-shadow: 0 12px 38px #123c6b21; }
.at-auth .voyage-language__panel::before { display: none; }
.at-auth .voyage-language__head { min-height: 32px; }
.at-auth .voyage-language__head strong { font-size: 12px; }
.at-auth .voyage-language__option { min-height: 44px; font-size: 12px; }
.at-auth [data-voyage-language-ready] .voyage-language__close { display: grid; width: 36px; height: 36px; flex-basis: 36px; }
.at-auth .voyage-language__backdrop { display: none; }
.at-auth-skip { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 12px 16px; border-radius: 10px; background: #0757e7; color: #fff; }
.at-auth-skip:focus { top: 12px; }
@media (min-width: 900px) and (max-width: 1100px) {
  .at-auth { grid-template-columns: minmax(0, 52fr) minmax(0, 48fr); }
  .at-auth__left { padding-inline: 27px; }
  .at-auth__header { gap: 12px; }
  .at-auth__back { font-size: 11px; }
  .at-auth__visual { padding: 26px; }
  .at-auth__features { gap: 10px; }
  .at-auth__features li + li { padding-inline-start: 12px; }
}
@media (max-width: 899px) {
  .at-auth { display: block; }
  .at-auth__left { min-height: 100vh; min-height: 100svh; max-width: 620px; margin-inline: auto; padding: 24px 30px 20px; }
  .at-auth__brand { width: 176px; }
  .at-auth__body { padding-block: 36px; }
  .at-auth__content { max-width: 460px; }
  .at-auth--register .at-auth__body { padding-top: 28px; }
  .at-auth__visual { display: none; }
  .at-auth .voyage-language__panel { position: fixed; inset: auto max(0px, calc((100% - 440px) / 2)) 0; width: auto; max-height: calc(100dvh - 70px); padding: 16px 16px max(18px, env(safe-area-inset-bottom)); border-bottom: 0; border-radius: 22px 22px 0 0; }
  .at-auth .voyage-language__panel::before { display: block; }
  .at-auth [data-voyage-language-ready][open] > .voyage-language__backdrop { display: block; position: fixed; inset: 0; z-index: 59; background: #061a3877; }
  html.at-auth-language-open { overflow: hidden; }
}
@media (max-width: 520px) {
  .at-auth__left { padding: 20px 20px max(20px, env(safe-area-inset-bottom)); }
  .at-auth__brand { width: 148px; }
  .at-auth__header { gap: 10px; }
  .at-auth__back { gap: 4px; font-size: 10px; }
  .at-auth__back svg { width: 14px; height: 14px; }
  .at-auth__body { padding-block: 36px; }
  .at-auth__tabs { margin-bottom: 25px; }
  .at-auth__tabs a { min-height: 43px; font-size: 13px; }
  .voyage #main-content .at-auth__heading h1 { font-size: 27px; }
  .voyage #main-content .at-auth--register .at-auth__heading h1 { font-size: 26px; }
  .at-auth .at-field__control input { font-size: 16px; }
  .at-field__control { min-height: 55px; }
  .at-field__reveal { width: 44px; height: 44px; flex-basis: 44px; }
  .at-auth__types a { font-size: 11px; gap: 7px; padding: 8px; min-height: 48px; }
  .at-auth__types a > svg { width: 17px; height: 17px; }
  .at-auth__types i { width: 15px; height: 15px; flex-basis: 15px; }
  .at-auth__field-row { grid-template-columns: minmax(0, 1fr); }
  .at-auth__submit { min-height: 50px; }
  .at-auth__heading p { font-size: 12px; }
  .at-auth__footer { padding-top: 6px; }
  .at-auth__footer small { font-size: 10px; }
}
@media (max-width: 350px) {
  .at-auth__left { padding-inline: 16px; }
  .at-auth__brand { width: 133px; }
  .at-auth__back { font-size: 9px; }
  .at-auth__types { gap: 6px; }
  .at-auth__types a { font-size: 10px; gap: 5px; padding: 8px 6px; }
}
@media (prefers-reduced-motion: no-preference) {
  .at-auth__content { animation: at-auth-enter .42s cubic-bezier(.2,.75,.3,1) both; }
  @keyframes at-auth-enter { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
}
@keyframes at-auth-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .at-auth *, .at-auth *::before, .at-auth *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
