@charset "UTF-8";
/* MatchGuru — Login per area (Talenti / Aziende / Recruiter)
   Built from design_handoff_login_matchguru. The design canvas is 1920x854 with
   absolute coordinates; here the geometry is reproduced at >=1280px and reflowed
   into a fluid single/two column layout below that, per the handoff's responsive
   notes. Area colours arrive as CSS custom properties set by the view. */
@font-face {
  font-family: "Monigue";
  src: url("../fonts/Monigue.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  /* Brand */
  --mg-ink: #1A1A1E;
  --mg-grey: #828282;
  --mg-magenta: #FF1DC9;
  --mg-white: #FFFFFF;
  /* UI */
  --ui-border-input: #E3E0E7;
  --ui-border-check: #CDC9D3;
  --ui-rule: #E0DEE4;
  --ui-placeholder: #A9A5B0;
  --ui-icon: #B9B5BE;
  --ui-error: #D32F2F;
  /* Tipografia */
  --font-display: "Monigue", sans-serif;
  --font-sans: "Urbanist", system-ui, sans-serif;
  /* Raggi */
  --r-panel: 24.64px;
  --r-card: 34.44px;
  --r-badge: 16.39px;
  --r-input: 8.86px;
  --r-cta: 10.74px;
  --r-check: 2px;
  --shadow-card: 0 0 32px rgba(0, 0, 0, .29);
}

/* Area palettes: the view sets .login--<area> on the stage. */
.login--talenti {
  --area-panel: #F1AC18;
  --area-line: #F1AC18;
  --area-cap: #FCEDCC;
  --area-focus-ring: rgba(241, 172, 24, .3);
}

.login--aziende {
  --area-panel: #711DFF;
  --area-line: #7642F1;
  --area-cap: #E1D5FC;
  --area-focus-ring: rgba(118, 66, 241, .3);
}

.login--recruiter {
  --area-panel: #AF208E;
  --area-line: #F100C3;
  --area-cap: #FCC7F2;
  --area-focus-ring: rgba(241, 0, 195, .3);
}

/* The shared _Layout wraps every view in .container-login; neutralise any
   inherited box so this page owns the full viewport. */
body > .container-login {
  margin: 0;
  padding: 0;
  max-width: none;
  width: 100%;
}

.login {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26.19px 23.25px;
  overflow: hidden;
  font-family: var(--font-sans);
  color: var(--mg-ink);
  background: var(--mg-white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  /* Bootstrap styles bare <a>; reset it here and let the accent links
     (.login__forgot, .login__signup a, .login__switch-links a) set their
     own colour through their more specific rules below. */
}
.login a {
  color: inherit;
  text-decoration: none;
}

/* 1. Pannello arrotondato a tutta pagina, colore d'area */
.login__panel {
  position: absolute;
  inset: 26.19px 23.25px;
  border-radius: var(--r-panel);
  background: var(--area-panel);
  z-index: 0;
}

/* 2. Forme organiche: volutamente più grandi del pannello, tagliate solo
      dal bordo dello schermo. */
.login__shapes {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  min-width: 1280px;
  transform: translateY(-50%);
  display: block;
  pointer-events: none;
  z-index: 1;
}

/* 3. Card bianca */
.login__card {
  position: relative;
  z-index: 2;
  width: 1120.62px;
  max-width: 100%;
  background: var(--mg-white);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
}

.login__rule {
  width: 1px;
  align-self: center;
  height: 537.84px;
  background: var(--ui-rule);
  flex: none;
}

/* ——— Colonna sinistra ——— */
.login__aside {
  position: relative;
  width: 561.97px;
  flex: none;
  padding: 54.5px 0 0 79.2px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.login__brand {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  padding: 0 26px 0 3.8px;
}

.login__logo {
  width: 177.33px;
  height: 26.63px;
  display: block;
}

/* Badge d'area: cappuccio colorato a sinistra, bordo disegnato sopra. */
.login__badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 32.77px;
  padding: 0 15px 0 48.36px;
  border-radius: var(--r-badge);
  background: var(--mg-white);
  overflow: hidden;
  flex: none;
}
.login__badge::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2.4px solid var(--area-line);
  border-radius: var(--r-badge);
  pointer-events: none;
  z-index: 2;
}

.login__badge-icon {
  position: absolute;
  left: 0;
  top: 0;
  width: 43.23px;
  height: 100%;
  border-radius: var(--r-badge);
  background: var(--area-cap);
  display: block;
  z-index: 1;
}
.login__badge-icon svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: var(--area-line);
}

.login__badge-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--area-line);
  line-height: 1;
  white-space: nowrap;
}

.login__hero {
  margin: 52.87px 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 86.5px;
  line-height: 1;
  letter-spacing: 0.004em;
}

.login__hero-line {
  display: block;
  white-space: nowrap;
}

.login__hero-line--accent {
  margin-left: 1.7px;
  color: var(--mg-magenta);
  text-transform: uppercase;
}

.login__tagline {
  margin: 14px 0 0 3.3px;
  font-size: 19.9px;
  font-weight: 500;
  line-height: 1;
  color: var(--mg-grey);
  white-space: nowrap;
}
.login__tagline span {
  color: var(--mg-magenta);
  font-weight: 600;
}

/* Illustrazione: tagliata dal bordo inferiore della card. */
.login__illustration {
  margin: 12.33px 0 0 3.35px;
  width: 457.65px;
  height: 270.3px;
  display: block;
}

/* ——— Colonna destra ——— */
.login__main {
  flex: 1;
  padding: 52px 0 0 89.28px;
  min-width: 0;
}

.login__form-wrap {
  width: 388.94px;
  max-width: 100%;
}

.login__title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.005em;
}

.login__lede {
  margin: 9px 0 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--mg-grey);
}

.login__form {
  margin-top: 36px;
}

.login__field + .login__field {
  margin-top: 25.85px;
}

.login__label {
  display: block;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 18px;
  margin-bottom: 9px;
}

.login__input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.login__input-icon {
  position: absolute;
  left: 21px;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--ui-icon);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.login__input {
  width: 100%;
  height: 49.65px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--mg-ink);
  background: var(--mg-white);
  border: 1.5px solid var(--ui-border-input);
  border-radius: var(--r-input);
  padding: 0 46px 0 53px;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.login__input::placeholder {
  color: var(--ui-placeholder);
}
.login__input:focus {
  outline: none;
  border-color: var(--area-line);
  box-shadow: 0 0 0 3px var(--area-focus-ring);
}

/* Stato di errore: rosso di sistema, non magenta, per non confonderlo
   con l'accento del brand. */
.login__field--error .login__input {
  border-color: var(--ui-error);
}
.login__field--error .login__input:focus {
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.25);
}

/* Empty by default so the fields keep the spacing of the design; the message
   pushes the following content down only when there is an error to show. */
.login__error {
  display: block;
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  color: var(--ui-error);
}
.login__error:not(:empty) {
  margin-top: 6px;
}

.login__eye {
  position: absolute;
  right: 12px;
  width: 30px;
  height: 30px;
  /* Enlarged to a 44x44 touch target on coarse pointers further down. */
  display: grid;
  place-items: center;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 9px;
  color: var(--ui-icon);
  transition: color 0.18s;
}
.login__eye:hover {
  color: var(--mg-ink);
}
.login__eye svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.login__eye .login__eye-slash {
  stroke-dasharray: 23;
  stroke-dashoffset: 23;
  transition: stroke-dashoffset 0.22s ease;
}
.login__eye.login__eye--on {
  color: var(--mg-ink);
}
.login__eye.login__eye--on .login__eye-slash {
  stroke-dashoffset: 0;
}

.login__options {
  margin-top: 22px;
  height: 19.17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.login__remember {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1;
  color: var(--mg-grey);
  cursor: pointer;
}
.login__remember input {
  appearance: none;
  -webkit-appearance: none;
  width: 19.17px;
  height: 19.17px;
  border-radius: var(--r-check);
  border: 1.5px solid var(--ui-border-check);
  background: var(--mg-white);
  cursor: pointer;
  display: grid;
  place-items: center;
  flex: none;
  margin: 0;
}
.login__remember input:checked {
  background: var(--mg-magenta);
  border-color: var(--mg-magenta);
}
.login__remember input:checked::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--mg-white);
  border-bottom: 2px solid var(--mg-white);
  transform: rotate(-45deg) translateY(-1px);
}
.login__remember input:focus-visible {
  outline: 2px solid var(--area-line);
  outline-offset: 2px;
}

/* Scoped under .login so it outranks the base `.login a` reset. */
.login .login__forgot {
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1;
  color: var(--mg-magenta);
  transition: color 0.18s;
}
.login .login__forgot:hover {
  color: var(--mg-ink);
}

.login__cta {
  margin: 26.29px 0 0 1.8px;
  width: 385.34px;
  max-width: 100%;
  height: 52.85px;
  border: none;
  border-radius: var(--r-cta);
  background: var(--mg-magenta);
  color: var(--mg-white);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter 0.18s, opacity 0.18s;
}
.login__cta:hover {
  filter: brightness(1.07);
}
.login__cta:disabled {
  cursor: not-allowed;
  filter: none;
}

.login__signup {
  margin: 33.36px 0 0;
  width: 388.94px;
  max-width: 100%;
  text-align: center;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1;
  color: var(--mg-grey);
}
.login__signup a {
  font-weight: 600;
  color: var(--mg-magenta);
  transition: color 0.18s;
}
.login__signup a:hover {
  color: var(--mg-ink);
}

.login__hr {
  display: block;
  margin: 27.62px 0 0 28.94px;
  width: 325.42px;
  max-width: 100%;
  height: 1px;
  background: var(--ui-rule);
}

.login__switch {
  margin-top: 24.02px;
  width: 388.94px;
  max-width: 100%;
  text-align: center;
  padding-bottom: 52px;
}
.login__switch p {
  margin: 0;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1;
  color: var(--mg-grey);
}

.login__switch-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 38px;
  margin-top: 18px;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1;
  color: var(--mg-grey);
}
.login__switch-links a {
  font-weight: 600;
  color: var(--mg-magenta);
  transition: color 0.18s;
}
.login__switch-links a:hover {
  color: var(--mg-ink);
}

/* ——— 768–1279px: card a piena larghezza, illustrazione nascosta ——— */
@media (max-width: 1279px) {
  .login {
    padding: 26.19px 23.25px;
    align-items: flex-start;
  }
  .login__shapes {
    min-width: 0;
    height: 100%;
    object-fit: cover;
  }
  .login__card {
    width: 100%;
    max-width: 720px;
    margin: 40px auto;
    flex-direction: column;
  }
  .login__rule {
    display: none;
  }
  .login__aside {
    width: 100%;
    padding: 40px 40px 0;
  }
  .login__brand {
    padding: 0;
  }
  .login__hero {
    margin-top: 32px;
    font-size: 64px;
  }
  .login__tagline {
    margin-left: 0;
    white-space: normal;
  }
  .login__illustration {
    display: none;
  }
  .login__main {
    width: 100%;
    padding: 32px 40px 0;
  }
  .login__form-wrap,
  .login__cta,
  .login__signup,
  .login__hr,
  .login__switch {
    width: 100%;
  }
  .login__cta {
    margin-left: 0;
  }
  .login__hr {
    margin-left: 0;
  }
}
/* ——— <768px: colonna singola, card senza ombra, fascia superiore ——— */
@media (max-width: 767px) {
  .login {
    padding: 0;
    align-items: stretch;
  }
  .login__panel {
    inset: 0 0 auto 0;
    height: 220px;
    border-radius: 0 0 var(--r-panel) var(--r-panel);
  }
  .login__shapes {
    top: 0;
    height: 220px;
    /* Let the band scale with the screen instead of keeping the 1280px
       desktop width, which would push the composition off-canvas. */
    min-width: 0;
    object-fit: cover;
    object-position: left top;
    transform: none;
  }
  .login__card {
    margin: 96px 0 0;
    max-width: none;
    border-radius: var(--r-card) var(--r-card) 0 0;
    box-shadow: none;
  }
  .login__aside {
    padding: 28px 20px 0;
  }
  .login__brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .login__hero {
    margin-top: 24px;
    font-size: 48px;
  }
  .login__hero-line--accent {
    margin-left: 0;
  }
  .login__main {
    padding: 28px 20px 0;
  }
  .login__options {
    height: auto;
    flex-wrap: wrap;
    gap: 12px;
  }
  .login__switch-links {
    gap: 24px;
    flex-wrap: wrap;
  }
  .login__switch {
    padding-bottom: 40px;
  }
}
/* ——— Schermi molto stretti (<=360px): il padding dell'input va ridotto,
   altrimenti il placeholder viene troncato. ——— */
@media (max-width: 360px) {
  .login__aside,
  .login__main {
    padding-left: 16px;
    padding-right: 16px;
  }
  /* Below ~300px the longer placeholder no longer fits; ellipsise it rather
     than shrinking the text under the 16px iOS-zoom threshold. */
  .login__input::placeholder {
    text-overflow: ellipsis;
  }
  .login__hero {
    font-size: 40px;
  }
  .login__input {
    padding: 0 42px 0 44px;
    font-size: 16px; /* stays >=16px: avoids iOS auto-zoom */
  }
  .login__input-icon {
    left: 14px;
  }
  .login__tagline,
  .login__lede {
    font-size: 16px;
  }
  .login__switch-links {
    gap: 16px;
  }
}
/* ——— Viewport basso (es. telefono in orizzontale): la card non deve restare
   centrata verticalmente, e il pannello colorato copre tutto lo sfondo. ——— */
@media (max-height: 560px) and (min-width: 768px) {
  .login {
    align-items: flex-start;
    padding: 0;
  }
  .login__panel {
    inset: 0;
    border-radius: 0;
  }
  .login__shapes {
    top: 0;
    height: 100%;
    transform: none;
    object-fit: cover;
  }
  .login__card {
    margin: 24px auto;
  }
}
/* ——— Schermate secondarie (recupero / reimposta password) ———
   Riusano pannello, forme, card, logo e badge del login, ma in colonna
   singola: hero e illustrazione restano specifici della schermata di accesso. */
.login--compact .login__card--single {
  width: 520px;
  display: block;
}
.login--compact .login__main--single {
  flex: none;
  width: 100%;
  padding: 48px 56px 52px;
}
.login--compact .login__brand--single {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0;
  margin-bottom: 36px;
}
.login--compact .login__form-wrap,
.login--compact .login__cta,
.login--compact .login__signup {
  width: 100%;
}
.login--compact .login__cta {
  margin-left: 0;
}

/* Titolo di pagina: stesso stile dell'h2 del login, ma è l'h1 di queste
   schermate (una sola h1 per pagina). */
.login__title--page {
  font-size: 26px;
  line-height: 1.25;
}

.login__hint {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--mg-grey);
}

/* Messaggio di conferma (email inviata, password reimpostata). */
.login__notice {
  margin: 0 0 28px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--mg-grey);
}

/* Errore a livello di form, es. link di reset scaduto. */
.login__alert {
  margin: 0 0 24px;
  padding: 12px 16px;
  border-radius: var(--r-input);
  border: 1.5px solid var(--ui-error);
  background: rgba(211, 47, 47, 0.06);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ui-error);
}

/* La CTA esiste anche come link (<a>) nelle schermate di conferma. */
.login__cta--link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.login .login__cta--link {
  color: var(--mg-white);
}

@media (max-width: 767px) {
  .login--compact .login__card--single {
    width: 100%;
  }
  .login--compact .login__main--single {
    padding: 32px 20px 40px;
  }
  .login--compact .login__brand--single {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
  }
  .login__title--page {
    font-size: 22px;
  }
}
@media (max-width: 360px) {
  .login--compact .login__main--single {
    padding-left: 16px;
    padding-right: 16px;
  }
}
/* ——— Snackbar di feedback ——— */
.login-snackbar {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 370px;
  max-width: calc(100vw - 48px);
  padding: 16px;
  border-radius: 12px;
  background: var(--mg-white);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
  border-left: 4px solid var(--ui-rule);
}

.login-snackbar--success {
  border-left-color: #2E7D32;
}

.login-snackbar--error {
  border-left-color: var(--ui-error);
}

.login-snackbar__icon {
  width: 24px;
  height: 24px;
  flex: none;
}

.login-snackbar__texts {
  flex: 1;
  min-width: 0;
}

.login-snackbar__title {
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--mg-ink);
}

.login-snackbar__subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--mg-grey);
}

.login-snackbar__action {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  color: var(--mg-magenta);
  transition: color .18s;
}

.login-snackbar__action:hover {
  color: var(--mg-ink);
}

.login-snackbar__close {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  flex: none;
  line-height: 0;
}
.login-snackbar__close img {
  width: 16px;
  height: 16px;
}

@media (max-width: 767px) {
  .login-snackbar {
    right: 16px;
    left: 16px;
    bottom: 16px;
    width: auto;
    max-width: none;
  }
}
/* Coarse pointers (touch): meet the 44x44 minimum hit area without changing
   the drawn size of the control. */
@media (hover: none), (pointer: coarse) {
  .login__eye {
    width: 44px;
    height: 44px;
    right: 5px;
  }
  .login__remember input {
    /* Keep the 19.17px box from the design, but extend the hit area. */
    outline-offset: 0;
    position: relative;
  }
  .login__remember input::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    transform: translate(-50%, -50%);
  }
  .login .login__forgot,
  .login__signup a,
  .login__switch-links a {
    /* Vertical breathing room so adjacent links are not mis-tapped. */
    display: inline-block;
    padding: 6px 0;
  }
}
