/* Timebinder Password Styles */
/* Extends shared authentication layout styles from authentication.css */

/* Validation */

.tb-input.is-invalid {
  border-color: #f43f6e;
  box-shadow: 0 0 0 0.2rem rgba(244, 63, 94, 0.14);
  background-image: none;
}

#client_error_explanation,
#server_error_explanation {
  background: #fff0f3;
  border: 1px solid #f43f6e;
  border-radius: 12px;
  color: #c0143c;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
}

.tb-password-error-icon {
  flex-shrink: 0;
  display: inline-flex;
  width: 35px;
  height: 35px;
}

.tb-password-error-icon img {
  width: 35px;
  height: 35px;
  display: block;
}

.tb-password-error-content {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}

#client_error_explanation ul,
#server_error_explanation ul {
  margin: 0;
  padding-left: 18px;
  width: 100%;
}

#client_error_explanation li,
#server_error_explanation li {
  margin: 0;
}

/* Password Form */

.password-image-panel {
  background-image: url("/assets/bg-signup.png");
}

.password-request-image-panel {
  background-image: url("/assets/bg-signup.png");
}

.password-home-link {
  color: #7c3aed;
}

.password-request-heading {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 1rem;
}

.password-request-title {
  font-size: 30px;
  line-height: 1.15;
  margin: 0;
}

.password-request-description {
  font-size: 16px;
  margin: 0;
}

.password-edit-title {
  font-size: 30px;
  line-height: 36px;
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.password-edit-description {
  color: #A1A5B7;
  font-size: 16px;
  line-height: 16px;
  font-weight: 400;
  margin: 0 0 16px;
}

.password-requirements-text {
  color: #637381;
  font-size: 14px;
  margin: 24px 0 16px;
  font-weight: 700;
}

.password-submit-button {
  margin-top: 24px;
}

.password-confirmation-group {
  margin-top: 24px;
}

.tb-password-field {
  position: relative;
}

.tb-password-toggle {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tb-password-toggle:hover {
  color: #111827;
}

.tb-password-toggle svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tb-password-toggle .tb-icon-hidden {
  display: none;
}

.tb-password-toggle.is-visible .tb-icon-visible {
  display: none;
}

.tb-password-toggle.is-visible .tb-icon-hidden {
  display: inline;
}

.tb-password-input {
  padding-right: 4.5rem;
}

.tb-password-input::-ms-reveal,
.tb-password-input::-ms-clear {
  background-image: none !important;
  display: none;
}

.tb-password-input::-webkit-credentials-auto-fill-button,
.tb-password-input::-webkit-textfield-decoration-container {
  visibility: hidden;
  pointer-events: none;
  position: absolute;
  right: 0;
}

.tb-password-rules {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tb-password-rule {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #8a847f;
  font-size: 0.95rem;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.tb-password-rule-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.tb-password-rule-icon img {
  width: 20px;
  height: 20px;
  display: block;
}

.tb-password-rule-icon .tb-rule-icon-met {
  display: none;
}

.tb-password-rule.met .tb-password-rule-icon .tb-rule-icon-unmet {
  display: none;
}

.tb-password-rule.met .tb-password-rule-icon .tb-rule-icon-met {
  display: block;
}

/* Sent Page */

.password-sent-panel {
  min-height: 70vh;
}

.password-sent-title {
  color: #23203a;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.password-sent-lead {
  color: #23203a;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
  margin: 8px;
}

.password-sent-email {
  color: #6f49f6;
  font-weight: 400;
  word-break: break-word;
  margin: 8px;
}

.password-sent-subhint {
  color: #7E8299;
  font-size: 12px;
  line-height: 12px;
  font-weight: 400;
}

.password-sent-illustration {
  display: flex;
  justify-content: center;
}

.password-sent-illustration img {
  width: min(100%, 220px);
  height: auto;
  display: block;
}

.password-sent-flash {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 1rem;
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: left;
}

.password-sent-flash.alert {
  background: #fff1f3;
  border: 1px solid #ffc6cf;
  color: #b4233e;
}

#resend-btn-wrapper form {
  margin: 8px;
}

.password-sent-footer {
  color: #7a768f;
  font-size: 0.96rem;
}

.password-sent-footer a {
  color: #6f49f6;
  font-weight: 700;
  text-decoration: none;
}

.password-sent-footer a:hover {
  text-decoration: underline;
}
