/* Estudios Védicos, login v2 (session 11, 24 Nov 2026): the page's own layer, on page/v2-base.css.
   Seeded from the theme's sections-login.css and restyled to home v2's language.
   Same section, same formation (the photograph of a class left of the form, the photograph above the form on
   phones), same text. What changed is the look:
   - the photo panel takes home v2's media corner and shadow (--rm, --pop, ink under it);
   - the form stands on home v2's paper sheet beside the photograph, as on contacto and registro;
   - the three things the account opens carry saffron line icons at home v2's 1.5 stroke on the dark foot;
   - the headline in Fraunces at opsz 144 with home v2's tight letter spacing, small display lines at opsz 36;
   - the section enters in its own way (see the entrance block), not the theme's bottom-up wipe.
   Every colour is a token from v2-base.css. Mobile first. Class prefix log-.
   Round 2 (26 Nov 2026, Ben's notes 28 to 30): the three things the account opens carry drawn icons from the set
   (saffron on the dark foot, drawn as they come into view, note 30); the form sheet takes one rule, its head and
   foot centred, its fields left (note 29); the gaps on the one ratio (note 28). */


/* ---------------------------------------------------------------- 1. Log in: the photograph and the form sheet */
.log-main__grid { display: grid; gap: var(--s-6); }
.log-media { position: relative; min-height: 500px; display: flex; align-items: flex-end; overflow: hidden; border-radius: var(--rm); background: var(--ink); box-shadow: var(--pop); color: var(--paper); }
.log-media__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 35%; }
/* The headline, the lead and what the account opens, on the photograph's shaded foot. */
.log-head { position: relative; z-index: 1; width: 100%; padding: 140px var(--s-4) var(--s-5); display: flex; flex-direction: column; align-items: center; text-align: center; background: linear-gradient(to top, color-mix(in srgb, var(--ink) 94%, transparent) 0%, color-mix(in srgb, var(--ink) 80%, transparent) 55%, transparent 100%); }
.log-head__title { margin: 0; color: var(--paper); font-size: clamp(2.6rem, 1.9rem + 2.8vw, 4.5rem); line-height: 1.02; letter-spacing: -0.025em; font-variation-settings: "opsz" 144; text-wrap: balance; }
.log-head__lede { margin: var(--g1) 0 0; max-width: 34rem; font-size: var(--fs-lead); line-height: 1.5; color: var(--sage-l); text-wrap: pretty; }
.log-inside { list-style: none; margin: var(--g2) 0 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--g2); }
.log-inside__item { display: flex; flex-direction: column; align-items: center; gap: var(--g1); }
.log-inside__icon.ico { --icc: var(--saffron); --isz: 48px; --isw: 1.5; }
.log-inside__text { font-family: var(--fd); font-weight: 400; font-size: var(--fs-h3); line-height: 1.25; color: var(--paper); font-variation-settings: "opsz" 36; text-wrap: balance; }

/* The form on home v2's paper sheet: the grain, the media corner, the deep soft shadow, no hairline. */
.log-panel { align-self: stretch; justify-content: center; max-width: none; padding: clamp(26px, 3.2vw, 44px); background-color: var(--paper); background-image: var(--noise), var(--surface-paper); background-blend-mode: soft-light, normal; border-radius: var(--rm); box-shadow: var(--pop); }
.log-panel > * { width: 100%; max-width: 480px; margin-left: auto; margin-right: auto; }
.log-panel > .log-switch { width: auto; }
.log-forgot { align-self: flex-start; margin-top: var(--s-1); font-size: var(--fs-small); }
/* One rule for the sheet at every width (note 29): its head, the Google button, the "or" line and the foot row
   centred; the form itself (labels, fields, the reset link, errors, the small print) left. */
.log-panel { text-align: center; }
.log-panel .log-form { text-align: left; }
.log-panel .fm-field { align-items: stretch; }
.log-panel .fm-field__error { flex-direction: row; align-items: flex-start; gap: var(--s-2); }
@media (min-width: 900px) {
  .log-main__grid { grid-template-columns: 7fr 5fr; gap: var(--s-7); }
  .log-media { align-self: stretch; min-height: 620px; }
  .log-head { align-items: flex-start; text-align: left; padding: 220px var(--s-6) var(--s-6); }
  .log-inside { max-width: 560px; }
  .log-inside__item { align-items: flex-start; }
}

/* Entrance, this section's own: coming back into the classroom, the lights come up. The photograph brightens
   from a dim, cool room to full colour as it settles, the headline arrives, then the three things the account
   opens draw in one after another (the set's own draw and move); the paper sheet with "Welcome back." is handed
   up from below. */
.js .log-main__grid[data-reveal] { opacity: 1; transform: none; }
.js .log-main__grid[data-reveal] .log-media { opacity: 0; transition: opacity .45s var(--ease); }
.js .log-main__grid[data-reveal] .log-media__img { filter: brightness(.22) saturate(.35); transform: scale(1.06); transition: filter 1.3s var(--ease) .1s, transform 1.5s var(--ease); }
.js .log-main__grid[data-reveal] .log-head__title, .js .log-main__grid[data-reveal] .log-head__lede { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease) .35s, transform .6s var(--ease) .35s; }
.js .log-main__grid[data-reveal] .log-head__lede { transition-delay: .45s; }
.js .log-main__grid[data-reveal] .log-inside__text { opacity: 0; transition: opacity .5s var(--ease); }
.js .log-main__grid[data-reveal] .log-inside__item:nth-child(1) > * { transition-delay: .8s; }
.js .log-main__grid[data-reveal] .log-inside__item:nth-child(2) > * { transition-delay: 1s; }
.js .log-main__grid[data-reveal] .log-inside__item:nth-child(3) > * { transition-delay: 1.2s; }
.js .log-main__grid[data-reveal] .log-panel { opacity: 0; transform: translateY(26px) scale(.98); transform-origin: 50% 100%; transition: opacity .8s var(--ease) .25s, transform .8s var(--ease) .25s; }
.js .log-main__grid.is-in .log-media, .js .log-main__grid.is-in .log-head__title, .js .log-main__grid.is-in .log-head__lede, .js .log-main__grid.is-in .log-inside__text, .js .log-main__grid.is-in .log-panel { opacity: 1; transform: none; }
.js .log-main__grid.is-in .log-media__img { filter: none; transform: none; }

/* Reduced motion: everything shows at once, nothing moves. */
@media (prefers-reduced-motion: reduce) {
  .js .log-main__grid[data-reveal] *, .js .log-main__grid[data-reveal] .log-media { opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; }
  .js .log-main__grid[data-reveal] .log-media__img { filter: none; }
}
