/*
UniMatch - appdesktop/assets/css/login.css - login and registration page - css
https://Unimatch.click

@author: Jacopo Siceri, https://www.linkedin.com/in/edoardo-lo-jacono-a55514210/
*/

/* Sicer's page fade-in */
body.page-enter { opacity: 0; }
body.page-ready  { opacity: 1; transition: opacity .45s ease; }

/* Sicer's base body */
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #f5f5f7;
  color: #1c1c1e;
  transition: background 0.3s, color 0.3s;
}
/* Sicer's background blur */
.blur-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #f5f5f7, #e8e8ed);
  backdrop-filter: saturate(180%) blur(20px);
  z-index: 0;
}
/* Sicer's login card (centered) */
.form-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  background: rgba(255, 255, 255, 0.8);
  padding: 2rem 1.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-width: 400px;
  width: 90%;
  text-align: center;
}
/* Sicer's logo */
.logo { max-width: 240px; margin-bottom: 1rem; }
.subtitle { font-size: 1.25rem; font-weight: 500; margin-bottom: 1.5rem; }
/* Sicer's error and success messages */
.error-msg {
  color: #d10000;
  border: 1px solid #d10000;
  background: transparent;
  padding: 0.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.success-msg {
  color: #28a745;
  border: 1px solid #28a745;
  background: transparent;
  padding: 0.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}
/* Sicer's form field */
.form-field {
  position: relative;
  margin-bottom: 1.25rem;
  text-align: left;
}
.form-content {
  max-width: 360px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  padding: 0 0.25rem;
}
.form-field input,
.form-field select,
button.continua,
.dob-fields select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.form-field input,
.form-field select {
  padding: 0.75rem 0.75rem 0.75rem 0.75rem;
  font-size: 1rem;
  color: inherit;
  background: transparent;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
}
/* Sicer's hide number spinners */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] { -moz-appearance: textfield; }
/* Sicer's floating label */
.form-field label {
  position: absolute;
  top: 50%;
  left: 0.55rem;
  transform: translateY(-50%);
  background: transparent;
  color: #7d7d7d;
  font-size: 1rem;
  padding: 0 0.25rem;
  pointer-events: none;
  transition: 0.2s ease-in-out;
}
.form-field input:focus + label,
.form-field input:not(:placeholder-shown) + label,
.form-field select:focus + label,
.form-field select:not(:placeholder-shown) + label {
  top: -0.6rem;
  font-size: 0.8rem;
  color: #5a5a5e;
}
.form-field input:focus,
.form-field select:focus {
  border-color: #007aff;
  box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.3);
}
/* Sicer's date of birth selects */
.dob-fields {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.dob-fields select {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  font-size: 1rem;
}
/* Sicer's primary action button */
button.continua {
  padding: 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(135deg, #007aff, #005bbb);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s;
  width: 100%;
  text-align: center;
}
button.continua:hover { background: linear-gradient(135deg, #005bbb, #00408a); }
/* Sicer's back button */
button.indietro {
  padding: 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  color: #007aff;
  background: transparent;
  border: 2px solid #007aff;
  border-radius: 10px;
  cursor: pointer;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}
button.indietro:hover { background: #007aff; color: #fff; }
/* Sicer's links */
.create-account a,
.forgot-password a {
  color: #007aff;
  text-decoration: none;
}
.create-account a:hover,
.forgot-password a:hover { text-decoration: underline; }
/* Sicer's registration modal overlay */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  z-index: 5;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.3s ease;
}
.modal.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
/* Sicer's multi-step form card */
.form-step {
  background: rgba(255, 255, 255, 0.9);
  padding: 2rem 1.75rem;
  border-radius: 16px;
  width: auto;
  max-width: 480px;
  min-width: min(380px, 90vw);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-align: left;
  opacity: 1;
  transition: opacity 0.4s ease;
}
.form-step h2 { text-align: center; margin-bottom: 1rem; }
.form-step.fade-out { opacity: 0; }
.form-step.fade-in { opacity: 1; }
.form-step.hidden { display: none; }
/* Sicer's nav buttons row */
.buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  gap: 0.5rem;
}
.buttons .indietro,
.buttons .continua { width: 100%; flex: 1; }
/* Sicer's note text */
.note { font-size: 0.85rem; color: #6e6e73; margin-bottom: 1rem; }
/* Sicer's mobility options grid */
.mobility-options {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  margin: 0.5rem 0;
}
.mobility-option {
  width: calc(50% - 0.5rem);
  padding: 0.75rem 1rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  box-sizing: border-box;
  cursor: pointer;
  color: #007aff;
  background: #fff;
  border: 2px solid #007aff;
  border-radius: 10px;
  transition: background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.mobility-option:hover:not(.selected) { background: #e8e8ed; color: #007aff; }
.mobility-option:focus-visible { outline: 3px solid rgba(0, 122, 255, 0.35); outline-offset: 2px; }
.mobility-option.selected {
  background: linear-gradient(135deg, #007aff, #005bbb);
  color: #fff;
  border: 2px solid #007aff;
}
.mobility-option.selected:hover { background: linear-gradient(135deg, #005bbb, #00408a); }
.mobility-label { display: block; font-size: 1rem; font-weight: 500; margin-bottom: 0.5rem; color: inherit; }
/* Sicer's footer (login page) */
footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(5px);
  color: inherit;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.footer-links { margin-bottom: 0.5rem; }
.footer-links a { color: inherit; margin-right: 1rem; text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { text-decoration: underline; }
/* Sicer's password toggle */
.form-field.password-field { position: relative; }
.toggle-password {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 1.1rem;
  color: #999;
  user-select: none;
}
.form-field.password-field input { padding-right: 2.5rem; }
/* Sicer's no-float label variant */
.form-field.no-float label {
  position: static;
  display: block;
  margin-bottom: 0.2rem;
  font-size: 1rem;
  color: #7d7d7d;
  padding: 0 0.25rem;
}
/* Sicer's password checklist */
.password-rules { margin-bottom: 1rem; font-size: 0.9rem; }
.password-checklist { list-style: none; padding-left: 0; margin: 0; }
.password-checklist li { margin: 0.3rem 0; transition: color 0.3s ease; color: #ff4d4f; }
.password-checklist li.valid { color: #28a745; }
.password-rules .info { margin-bottom: 0.5rem; font-weight: 500; }
/* Sicer's terms */
.terms-container { margin: 1rem 0; font-size: 0.9rem; color: #333; }
.terms-container a { color: #007aff; text-decoration: none; }
.terms-container a:hover { text-decoration: underline; }
/* Sicer's dark mode */
@media (prefers-color-scheme: dark) {
  body { background-color: #1c1c1e; color: #f5f5f7; }
  .form-container { background: rgba(30, 30, 30, 0.85); }
  footer { background: rgba(0, 0, 0, 0.7); }
  .form-step { background: rgba(30, 30, 30, 0.95); }
  .blur-bg { background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(15px); }
  select { background-color: #111; color: #fff; border: 1px solid #444; }
  select option { background-color: #111; color: #fff; }
  .dob-fields select { background-color: #111 !important; color: #f5f5f7 !important; border: 1px solid #444 !important; }
  .mobility-option {
    background: rgba(255, 255, 255, 0.06);
    color: #0a84ff;
    border-color: #0a84ff;
  }
  .mobility-option:hover:not(.selected) { background: rgba(255, 255, 255, 0.12); color: #0a84ff; border-color: #0a84ff; }
  .mobility-option.selected { background: linear-gradient(135deg, #0a84ff, #005bbb); color: #fff; border-color: #0a84ff; }
  .mobility-option.selected:hover { background: linear-gradient(135deg, #0a74e8, #0048a8); }
  .terms-container label { color: #ffffff; }
  .terms-container a { color: #0a84ff; }
  .terms-container a:hover { color: #66aaff; }
}
/* Sicer's mobile responsive */
@media (max-width: 480px) {
  .form-step { padding: 1.5rem 1.25rem; }
  .form-container { padding: 1.5rem 1rem; }
  .mobility-option { width: calc(50% - 0.35rem); font-size: 0.9rem; padding: 0.6rem 0.5rem; }
}

/* Prodotto da $1C3Я

███████╗██╗ ██████╗███████╗██████╗
██╔════╝██║██╔════╝██╔════╝██╔══██╗
███████╗██║██║     █████╗  ██████╔╝
╚════██║██║██║     ██╔══╝  ██╔══██╗
███████║██║╚██████╗███████╗██║  ██║
╚══════╝╚═╝ ╚═════╝╚══════╝╚═╝  ╚═╝
2026 */
