* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 16px 20px 48px; background: linear-gradient(115deg, #fff1dc, #fff7ee 56%, #fffdfa); font-family: Arial, sans-serif; color: #583e23; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.auth { width: min(466px, 100%); background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 22px 65px #583e2314; }
.head { padding: 10px 24px 16px; text-align: center; background: linear-gradient(110deg, #fff1dc, #fae4c3); color: #583e23; }
.head h1 { margin: 0 0 4px; font-size: 30px; letter-spacing: -1px; }
.head p { margin: 0; color: #696969; font-size: 16px; line-height: 1.4; }
.body { padding: 18px 26px 20px; }
.badge { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 50%; background: #fff1dc; color: #bf7225; }
.badge .icon { width: 28px; height: 28px; }
h2 { margin: 0; font-size: 20px; line-height: 1.4; text-align: center; }
.description { margin: 6px 0 16px; color: #696969; text-align: center; font-size: 16px; line-height: 1.4; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.input-row { display: flex; align-items: center; min-height: 50px; border: 2px solid #e8e7e7; border-radius: 13px; overflow: hidden; }
.input-row:focus-within { border-color: #ff6600; box-shadow: 0 0 0 3px #ff66001c; }
.input-row:has([aria-invalid="true"]) { border-color: #b12d46; }
input { width: 100%; min-width: 0; border: 0; outline: none; padding: 12px 14px; font: inherit; font-size: 17px; color: #583e23; background: transparent; }
input::placeholder { color: #92908d; opacity: 1; }
.country-picker { position: relative; align-self: stretch; flex-shrink: 0; border-right: 1px solid #e8e7e7; background: #fffdfa; }
.country-summary { height: 100%; display: flex; align-items: center; gap: 10px; padding: 0 12px; font-size: 17px; font-weight: 600; }
#country-flag { font-size: 25px; }
.chevron { width: 17px; height: 17px; color: #696969; }
#country { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.email-icon { margin-left: 15px; color: #696969; }
button { cursor: pointer; font-family: inherit; }
.submit { width: 100%; min-height: 48px; padding: 12px; margin-top: 12px; border: 0; border-radius: 13px; background: linear-gradient(110deg, #ff6600, #ff6600); color: #21170e; font-size: 17px; font-weight: 600; }
.submit:hover { filter: brightness(1.08); }
fieldset:disabled { opacity: .65; }
fieldset:disabled button, fieldset:disabled select { cursor: wait; }
.divider { display: flex; align-items: center; gap: 15px; margin: 12px 0; color: #696969; font-size: 16px; }
.divider span { flex: 1; height: 1px; background: #e8e7e7; }
.alternative { display: flex; justify-content: center; align-items: center; gap: 12px; width: 100%; min-height: 46px; border: 0; border-radius: 13px; padding: 12px; background: linear-gradient(110deg, #fff1dc, #fff1dc); color: #583e23; font-size: 17px; font-weight: 600; }
.alternative:hover { background: #fae4c3; }
.account { margin-top: 18px; border-top: 1px solid #e8e7e7; padding-top: 14px; text-align: center; font-size: 16px; }
.account p { margin: 0 0 4px; color: #696969; }
.account a { color: #583e23; font-size: 17px; font-weight: 600; text-underline-offset: 2px; }
.home { display: flex; align-items: center; gap: 8px; width: fit-content; min-height: 32px; margin: 0 0 4px; color: #583e23; font-size: 14px; text-decoration: none; }
.home .icon { width: 18px; height: 18px; }
.home:hover { color: #583e23; text-decoration: underline; }
.message { margin: 10px 0 0; color: #a3253d; font-size: 14px; line-height: 1.5; }
.code label { display: block; margin-bottom: 8px; text-align: center; }
.code input { text-align: center; font-size: 24px; letter-spacing: 8px; }
.code strong { overflow-wrap: anywhere; }
.back { display: block; width: 100%; min-height: 44px; margin-top: 18px; background: none; border: 0; color: #583e23; font-size: 15px; }
a:focus-visible, button:focus-visible { outline: 3px solid #bf7225; outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
/* Compact spacing keeps every action visible on laptop and phone viewports. */
@media (max-height: 700px) {
    body { padding-top: 8px; }
    .head { padding-top: 6px; padding-bottom: 12px; }
    .head h1 { font-size: 27px; }
    .body { padding-top: 14px; padding-bottom: 14px; }
    .badge { display: none; }
    .description { margin-bottom: 12px; }
    .account { margin-top: 14px; padding-top: 12px; font-size: 14px; }
    .account a { font-size: 16px; }
}
@media (max-width: 400px) {
    body { padding-right: 12px; padding-left: 12px; }
    .body { padding-right: 18px; padding-left: 18px; }
    h2 { font-size: 18px; }
    input { padding: 12px 10px; font-size: 16px; }
    .country-summary { gap: 5px; padding: 0 8px; font-size: 16px; }
    .alternative { gap: 10px; font-size: 15px; }
}
/* Short landscape windows use the available width instead of hiding content. */
@media (max-height: 500px) and (min-width: 600px) {
    body { padding: 8px 16px 44px; }
    .auth { width: min(760px, 100%); display: grid; grid-template-columns: 220px minmax(0, 1fr); }
    .head { display: flex; flex-direction: column; justify-content: center; padding: 16px; }
    .head .home { margin-bottom: 16px; }
    .body { padding: 12px 20px; }
    h2 { font-size: 18px; }
    .description { font-size: 14px; margin: 4px 0 8px; }
    .input-row { min-height: 44px; }
    input { padding-top: 10px; padding-bottom: 10px; }
    .submit { min-height: 44px; margin-top: 8px; padding: 10px; }
    .divider { margin: 6px 0; font-size: 14px; }
    .alternative { min-height: 44px; padding: 8px; font-size: 15px; }
    .account { margin-top: 10px; padding-top: 8px; }
    .account p { display: inline; margin-right: 4px; }
}
/* Keep Symfony's development toolbar out of the centered page's layout. */
body > .sf-toolbar { position: fixed; inset: auto 0 0; z-index: 99999; }
@media (max-width: 600px) {
    body:has(> .sf-toolbar) { padding-bottom: 80px; }
}
@media (max-height: 600px) and (max-width: 599px) {
    .head { padding: 4px 18px 8px; }
    .head h1 { font-size: 24px; }
    .head p { font-size: 14px; }
    .home { min-height: 28px; font-size: 13px; }
    .body { padding-top: 12px; padding-bottom: 12px; }
    .description { font-size: 14px; line-height: 1.35; margin: 4px 0 10px; }
    .divider { margin: 8px 0; }
    .account { margin-top: 10px; padding-top: 8px; font-size: 13px; }
    .account a { font-size: 15px; }
}
