/* Let Me Discover v2: log in + create an account (website/tours/v2/auth, login, register). Loads after lmd-v2.css
   (tokens, .lmd-btn) and lmd-tour.css (the Home button, the cookie card).
   One screen split in two: the photo on the left with a short line in its sky, the form on the right on the home
   "Where to next?" light-blue background. Phones: a photo strip on top, the form under it. */
.lmd-au {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); height: 100vh; min-height: 640px;
    font-family: var(--lmd-body); color: var(--lmd-ink);
    background: linear-gradient(180deg, #f2f9ff 0%, #afd0f0 100%);
}

/* ───── the photo ───── */
.lmd-au__photo { position: relative; isolation: isolate; overflow: hidden; }
.lmd-au__photo img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; display: block; }
.lmd-au__say {
    position: absolute; left: clamp(28px, 4vw, 64px); right: clamp(28px, 4vw, 64px); top: clamp(96px, 16vh, 150px);
    color: var(--lmd-white); text-shadow: 0 2px 18px rgba(15, 50, 100, .4);
    animation: lmd-tp-rise .9s var(--lmd-ease-out) .1s both;
}
.lmd-au__say b { display: block; max-width: 520px; font: 700 clamp(32px, 3.4vw, 52px)/1.06 var(--lmd-display); letter-spacing: -.02em; text-wrap: balance; }
.lmd-au__say span { display: block; max-width: 420px; margin-top: 14px; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.5; color: var(--lmd-white-2); }

/* ───── the form side ───── */
.lmd-au__side { display: flex; align-items: center; justify-content: center; padding: 84px clamp(24px, 5vw, 80px) 40px; overflow-y: auto; }
.lmd-au__box { width: min(460px, 100%); animation: lmd-tp-rise .9s var(--lmd-ease-out) .2s both; }
.lmd-au__box h1 { margin: 0; font: 700 clamp(30px, 2.6vw, 40px)/1.1 var(--lmd-display); letter-spacing: -.02em; color: var(--lmd-ink); }
.lmd-au__sub { margin: 8px 0 0; font-size: 16px; color: rgba(15, 61, 102, .72); }

.lmd-au__note { margin: 18px 0 0; padding: 12px 14px; border-radius: 14px; font-size: 14px; line-height: 1.5; color: #8a1f2b; background: rgba(255, 235, 238, .85); border: 1px solid rgba(200, 60, 80, .25); }
.lmd-au__note.is-ok { color: #13562f; background: rgba(226, 248, 236, .85); border-color: rgba(40, 150, 90, .25); }

.lmd-au__form { margin-top: 22px; }
.lmd-au__step { margin: 0; padding: 0; border: 0; min-width: 0; }
.lmd-au__step[hidden] { display: none; }
.lmd-au__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lmd-au__row--name { grid-template-columns: 96px 1fr 1fr; }

.lmd-au__field { display: block; margin: 0 0 14px; }
.lmd-au__field[hidden] { display: none; }
.lmd-au__field > span { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 6px; font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--lmd-ink); }
.lmd-au__field small { font-size: 12px; font-weight: 500; color: rgba(15, 61, 102, .6); }
.lmd-au__field input, .lmd-au__field select, .lmd-au__field textarea {
    width: 100%; height: 50px; padding: 0 16px; border-radius: 14px; outline: none;
    font: 500 15px var(--lmd-body); color: var(--lmd-ink);
    background: rgba(255, 255, 255, .78); border: 1px solid rgba(15, 61, 102, .14);
    box-shadow: 0 8px 20px -16px rgba(15, 45, 90, .5);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.lmd-au__field select { appearance: none; padding-right: 36px; cursor: pointer;
    background: rgba(255, 255, 255, .78) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230f3d66' stroke-width='2.6'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center no-repeat; }
.lmd-au__field textarea { height: auto; min-height: 72px; padding: 12px 16px; line-height: 1.5; resize: vertical; }
.lmd-au__field input:focus, .lmd-au__field select:focus, .lmd-au__field textarea:focus {
    background-color: var(--lmd-white); border-color: #55a6e0; box-shadow: 0 0 0 4px rgba(85, 166, 224, .22);
}

/* our dropdown (built by the page script over each select; the select itself stays hidden in the form) */
.lmd-au__pick { position: relative; }
.lmd-au__pick select { display: none; }
.lmd-au__pickbtn {
    width: 100%; height: 50px; padding: 0 36px 0 16px; border-radius: 14px; outline: none; cursor: pointer; text-align: left;
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
    font: 500 15px var(--lmd-body); color: var(--lmd-ink);
    background: rgba(255, 255, 255, .78) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230f3d66' stroke-width='2.6'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center no-repeat;
    border: 1px solid rgba(15, 61, 102, .14); box-shadow: 0 8px 20px -16px rgba(15, 45, 90, .5);
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.lmd-au__pickbtn:focus-visible, .lmd-au__pick.is-open .lmd-au__pickbtn { background-color: var(--lmd-white); border-color: #55a6e0; box-shadow: 0 0 0 4px rgba(85, 166, 224, .22); }
.lmd-au__menu {
    position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; min-width: 100%; width: max-content; max-width: min(360px, 90vw);
    padding: 6px; border-radius: 16px; background: rgba(250, 253, 255, .97);
    border: 1px solid rgba(85, 166, 224, .35); box-shadow: 0 24px 50px -20px rgba(15, 45, 90, .45);
    animation: lmd-au-drop .18s ease-out both;
}
@keyframes lmd-au-drop { from { opacity: 0; transform: translateY(-6px); } }
.lmd-au__field .lmd-au__find {
    display: block; width: 100%; height: 40px; margin: 0 0 6px; padding: 0 12px 0 36px; border-radius: 11px; outline: none;
    font: 500 14px var(--lmd-body); color: var(--lmd-ink); border: 1px solid rgba(15, 61, 102, .14);
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%230f3d66' stroke-opacity='.55' stroke-width='2.4'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") 12px center no-repeat;
}
.lmd-au__field .lmd-au__find:focus { border-color: #55a6e0; box-shadow: none; }
.lmd-au__menu ul { max-height: 260px; margin: 0; padding: 0; list-style: none; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(15, 61, 102, .25) transparent; }
.lmd-au__menu li {
    display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 12px 9px 32px; border-radius: 10px;
    font-size: 15px; color: var(--lmd-ink); cursor: pointer; position: relative;
}
.lmd-au__menu li[hidden] { display: none; }
.lmd-au__menu li small { font-size: 13px; font-weight: 600; color: rgba(15, 61, 102, .5); }
.lmd-au__menu li.is-active { background: rgba(214, 240, 255, .9); }
.lmd-au__menu li[aria-selected="true"] { font-weight: 700; color: #2f7fc4; }
.lmd-au__menu li[aria-selected="true"]::before {
    content: ""; position: absolute; left: 11px; top: 50%; width: 12px; height: 12px; transform: translateY(-50%);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232f7fc4' stroke-width='3.4'%3E%3Cpath d='M4 12l5 5L20 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* the password with its eye button */
.lmd-au__pass { position: relative; }
.lmd-au__pass input { padding-right: 50px; }
.lmd-au__eye {
    position: absolute; top: 50%; right: 8px; transform: translateY(-50%); display: grid; place-items: center;
    width: 36px; height: 36px; padding: 0; border: 0; border-radius: 10px; background: none; color: rgba(15, 61, 102, .55); cursor: pointer;
}
.lmd-au__eye:hover { color: var(--lmd-ink); background: rgba(15, 61, 102, .06); }
.lmd-au__eye-shut, .lmd-au__eye.is-on .lmd-au__eye-open { display: none; }
.lmd-au__eye.is-on .lmd-au__eye-shut { display: block; }

/* the mobile number with its dialling code in front */
.lmd-au__tel { display: flex; }
.lmd-au__tel b {
    display: grid; place-items: center; min-width: 58px; padding: 0 10px; border-radius: 14px 0 0 14px;
    font-size: 14px; font-weight: 700; color: var(--lmd-ink); background: rgba(214, 240, 255, .9); border: 1px solid rgba(15, 61, 102, .14); border-right: 0;
}
.lmd-au__tel input { border-radius: 0 14px 14px 0; }

.lmd-au__forgot { display: block; margin: -4px 0 0; text-align: right; font-size: 14px; font-weight: 600; color: #2f7fc4; text-underline-offset: 3px; }
.lmd-au__forgot:hover { color: var(--lmd-wave); }

.lmd-au__go { width: 100%; height: 54px; margin-top: 22px; justify-content: space-between; }
.lmd-au__go .lmd-btn__label { padding: 0 22px; }
.lmd-au__swap { margin: 18px 0 0; text-align: center; font-size: 15px; color: rgba(15, 61, 102, .75); }
.lmd-au__swap a { font-weight: 700; color: #2f7fc4; text-underline-offset: 3px; }
.lmd-au__swap a:hover { color: var(--lmd-wave); }

/* ───── become a partner: three short points under the heading ───── */
.lmd-au__perks { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.lmd-au__perks li {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 10px; border-radius: 999px;
    font-size: 13px; font-weight: 700; color: var(--lmd-ink); background: rgba(255, 255, 255, .65); border: 1px solid rgba(15, 61, 102, .1);
}
.lmd-au__perks li::before {
    content: ""; width: 14px; height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232f7fc4' stroke-width='3.2'%3E%3Cpath d='M4 12l5 5L20 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ───── register: the steps ───── */
.lmd-au__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; counter-reset: none; }
.lmd-au__steps li {
    display: flex; align-items: center; gap: 8px; padding-top: 10px; font-size: 13px; font-weight: 700; color: rgba(15, 61, 102, .45);
    border-top: 3px solid rgba(15, 61, 102, .12); transition: color .3s ease, border-color .3s ease;
}
.lmd-au__steps i {
    display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-style: normal; font-size: 12px;
    color: rgba(15, 61, 102, .55); background: rgba(255, 255, 255, .7); transition: background .3s ease, color .3s ease;
}
.lmd-au__steps li.is-now, .lmd-au__steps li.is-done { color: var(--lmd-ink); border-top-color: #55a6e0; }
.lmd-au__steps li.is-now i, .lmd-au__steps li.is-done i { color: var(--lmd-white); background: #3486cc; }

/* Individual / Agency */
.lmd-au__kind { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0 0 16px; padding: 5px; border-radius: 16px; background: rgba(255, 255, 255, .55); border: 1px solid rgba(15, 61, 102, .1); }
.lmd-au__kind label { margin: 0; cursor: pointer; }
.lmd-au__kind input { position: absolute; opacity: 0; pointer-events: none; }
.lmd-au__kind span { display: block; padding: 10px 0; border-radius: 12px; text-align: center; font-weight: 700; font-size: 15px; color: rgba(15, 61, 102, .65); transition: background .25s ease, color .25s ease; }
.lmd-au__kind input:checked + span { color: var(--lmd-white); background: var(--lmd-btn); box-shadow: 0 8px 18px -12px rgba(15, 45, 90, .6); }
.lmd-au__kind input:focus-visible + span { outline: 2px solid #55a6e0; outline-offset: 2px; }

.lmd-au__robot { min-height: 78px; margin-top: 2px; }

/* Back / Next / Create account */
.lmd-au__nav { display: flex; gap: 12px; margin-top: 8px; }
.lmd-au__nav .lmd-au__go { flex: 1; margin-top: 0; }
.lmd-au__back {
    height: 54px; padding: 0 22px; border-radius: 12px; font: 700 15px var(--lmd-body); color: var(--lmd-ink); cursor: pointer;
    background: rgba(255, 255, 255, .7); border: 1px solid rgba(15, 61, 102, .14); transition: background .2s ease;
}
.lmd-au__back:hover { background: var(--lmd-white); }
.lmd-au__form.is-first .lmd-au__back, .lmd-au__form:not(.is-last) .lmd-au__send, .lmd-au__form.is-last .lmd-au__next { display: none; }

/* short laptop screens */
@media (min-width: 901px) and (max-height: 760px) {
    .lmd-au__side { padding-top: 72px; padding-bottom: 24px; }
    .lmd-au__form, .lmd-au__steps { margin-top: 16px; }
    .lmd-au__field { margin-bottom: 10px; }
    .lmd-au__field input, .lmd-au__field select { height: 46px; }
    .lmd-au__go, .lmd-au__back { height: 50px; }
}

/* phones and small tablets: a photo strip on top, the form under it */
@media (max-width: 900px) {
    .lmd-au { display: block; height: auto; min-height: 100vh; }
    .lmd-au__photo { height: 34vh; min-height: 220px; }
    .lmd-au__photo img { object-position: 50% 62%; }
    .lmd-au__say { top: auto; bottom: 22px; left: var(--lmd-gutter); right: var(--lmd-gutter); }
    .lmd-au__say b { font-size: 28px; }
    .lmd-au__say span { display: none; }
    .lmd-au__side { display: block; padding: 28px var(--lmd-gutter) 40px; overflow: visible; }
    .lmd-au__box { margin: 0 auto; }
}
@media (max-width: 480px) {
    .lmd-au__row { grid-template-columns: 1fr; gap: 0; }
    .lmd-au__row--name { grid-template-columns: 88px 1fr; column-gap: 12px; }
    .lmd-au__row--name .lmd-au__field:last-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
    .lmd-au *, .lmd-au *::before, .lmd-au *::after { animation: none !important; transition: none !important; }
}
