:root {
  --bg: #fffaf0;
  --card: #fff1c9;
  --primary: #8b1e3f;
  --text: #2a2a2a;
  --muted: #6f6f6f;
  --radius: 14px;
  --link: #2617c8;
}

/* PAGE */

.login-page {
  background-color: var(--bg);
  padding: 0rem 1.5rem 3rem;
  display: flex;
  justify-content: center;
}

.login-card {
  width: 100%;
  max-width: 360px;
  text-align: center;
  margin-top: 2rem;
}

/* TITRES */


.login-subtitle {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.4;
  margin-bottom: 1.8rem;
}

/* FORM */

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-group {
  text-align: left;
}

.form-group label {
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
  display: block;
  color: var(--text);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  border: 1px solid #bbb;
  font-size: 0.9rem;
  background-color: transparent;
  color: var(--text);
}

/* SELECT */

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%236f6f6f' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  appearance: none;
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 1rem;
}

/* PASSWORD */

.password-rules {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  list-style: none;
  padding-left: 0;
  color: var(--muted);
}

.password-rules li {
  margin-bottom: 0.2rem;
}

.password-rules li.valid {
  color: green;
}

.password-rules li.invalid {
  color: #c0392b;
}

.password-wrapper {
  display: flex;
  gap: 0.4rem;
}

.password-wrapper input {
  flex: 1;
}

.show-password {
  background-color: var(--card);
  border: none;
  border-radius: 10px;
  padding: 0 0.8rem;
  font-size: 0.8rem;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* BUTTONS */

.btn-primary {
  margin-top: 1rem;
  background-color: var(--card);
  border: none;
  border-radius: 999px;
  padding: 0.7rem;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-secondary {
  margin-top: 1rem;
  background-color: var(--card);
  border: none;
  border-radius: 999px;
  padding: 0.7rem;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}


/* LINKS */

.login-links {
  font-size: 0.85rem;
  margin-top: 1rem;
}

.login-links p {
  margin-top: 1.2rem;
  color: var(--text);

}

.login-links a {
  color: var(--link);
  text-decoration: none;
}

.login-links a:hover {
  text-decoration: underline;
}

.custom-select {
  position: relative;
}

.select-trigger {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  border: 1px solid #bbb;
  background: transparent;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.select-trigger .arrow {
  width: 10px;
  height: 10px;
  border-right: 2px solid #6f6f6f;
  border-bottom: 2px solid #6f6f6f;
  transform: rotate(45deg);
  margin-right: 4px;
}

.select-options {
  display: none;
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  width: 100%;
  background-color: var(--card);
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  overflow: hidden;
  z-index: 10;
}

.select-options li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0.8rem;
  cursor: pointer;
}

.select-options li + li {
  border-top: 1px solid rgba(0,0,0,0.1);
}

.select-options li:hover {
  background-color: rgba(0,0,0,0.05);
}

/* radio visuel */
.radio {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #333;
}

.select-options li.selected .radio {
  background-color: #000;
}

.btn-primary:disabled {
  opacity: 0.8;
  cursor: not-allowed;
}