/* Auth Pages - Modern Design */

.auth-page {
  min-height: calc(100vh - 230px);
  padding: 2rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
}

.auth-container {
  max-width: 500px;
  width: 100%;
}

/* Header Section */
.auth-header {
  text-align: center;
  margin-bottom: 2.5rem;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, var(--color-pink) 0%, var(--color-blue) 100%);
  border-radius: 20px;
  color: var(--color-white);
  box-shadow: 0 8px 30px rgba(23, 46, 69, 0.15);
}

.auth-header__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  margin-bottom: 1rem;
  backdrop-filter: blur(10px);
}

.auth-header__icon svg {
  color: var(--color-white);
}

.auth-header__title {
  font-family: 'Gready', serif;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: var(--color-white);
}

.auth-header__subtitle {
  font-size: 1rem;
  margin: 0;
  opacity: 0.95;
  font-weight: 400;
  line-height: 1.5;
}

/* Card Container */
.auth-card {
  background: var(--color-white);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(23, 46, 69, 0.08);
  border: 1px solid #e8eaed;
}

/* Form */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Form Errors */
.auth-form__errors {
  background: #fee;
  border: 1px solid #fcc;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.error-list {
  list-style: none;
  padding: 0;
  margin: 0;
  color: #c33;
  font-size: 0.9rem;
}

.error-list li {
  margin-bottom: 0.5rem;
}

.error-list li:last-child {
  margin-bottom: 0;
}

/* Form Fields */
.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.auth-field__label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.auth-field input[type="email"],
.auth-field input[type="text"],
.auth-field input[type="password"] {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e8eaed;
  border-radius: 12px;
  font-size: 1rem;
  background: var(--color-white);
  color: var(--color-blue);
  transition: all 0.3s ease;
  font-family: 'Avenir Next', sans-serif;
}

.auth-field input[type="email"]:focus,
.auth-field input[type="text"]:focus,
.auth-field input[type="password"]:focus {
  outline: none;
  border-color: var(--color-pink);
  box-shadow: 0 0 0 4px rgba(206, 55, 88, 0.1);
}

.auth-field input[type="email"]::placeholder,
.auth-field input[type="text"]::placeholder,
.auth-field input[type="password"]::placeholder {
  color: #9aa0a6;
  opacity: 1;
}

.auth-field .errorlist {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0 0;
  color: #c33;
  font-size: 0.85rem;
}

.auth-field__help {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.25rem;
  line-height: 1.4;
}

/* Checkbox (for welcome form) */
.auth-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}

.auth-checkbox__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.auth-checkbox__label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  margin: 0;
}

.auth-checkbox__checkmark {
  position: relative;
  width: 24px;
  height: 24px;
  min-width: 24px;
  border: 2px solid var(--color-pink);
  border-radius: 6px;
  background: var(--color-white);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-checkbox__checkmark::after {
  content: '';
  position: absolute;
  display: none;
  width: 6px;
  height: 10px;
  border: solid var(--color-white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-top: -2px;
}

.auth-checkbox__input:checked ~ .auth-checkbox__label .auth-checkbox__checkmark {
  background: var(--color-pink);
  border-color: var(--color-pink);
}

.auth-checkbox__input:checked ~ .auth-checkbox__label .auth-checkbox__checkmark::after {
  display: block;
}

.auth-checkbox__text {
  flex: 1;
  line-height: 1.5;
  color: var(--color-blue);
}

/* Submit Button */
.auth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, var(--color-blue) 0%, #1a3a5a 100%);
  color: var(--color-white);
  border: none;
  border-radius: 50px;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(23, 46, 69, 0.3);
  letter-spacing: 1px;
  text-transform: uppercase;
  width: 100%;
  margin-top: 0.5rem;
}

.auth-button svg {
  transition: transform 0.3s ease;
}

.auth-button:hover {
  background: linear-gradient(135deg, var(--color-pink) 0%, #e85574 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(206, 55, 88, 0.4);
}

.auth-button:hover svg {
  transform: translateX(4px);
}

.auth-button:active {
  transform: translateY(0) scale(0.98);
}

/* Footer */
.auth-footer {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e8eaed;
  text-align: center;
}

.auth-footer__text {
  font-size: 0.9rem;
  color: #666;
  margin: 0.5rem 0;
}

.auth-footer__link {
  color: var(--color-pink);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.auth-footer__link:hover {
  color: var(--color-blue);
  text-decoration: underline;
}

.auth-footer__link--forgot {
  display: block;
  margin-top: 1rem;
  font-size: 0.9rem;
}

/* Legacy support for old class names */
.login-form {
  min-height: calc(100vh - 268px);
}

.login-form .fieldWrapper {
  margin-bottom: 20px;
  position: relative;
  width: 100%;
}

.login-form ul li {
  font-size: 14px;
}

.fieldWrapper .help,
.fieldWrapper .help ~ ul {
  opacity: 0;
  visibility: hidden;
  transition: all .3s ease;
  font-size: 12px;
  line-height: 1.3;
  margin-bottom: 0;
  position: absolute;
  right: -260px;
  top: 50%;
  transform: translateY(-50%);
  max-width: 240px;
  background-color: var(--color-blue);
  color: var(--color-white);
  padding: 10px;
  border-radius: 8px;
}

.fieldWrapper .help ~ ul {
  padding: 10px 10px 10px 20px;
}

.fieldWrapper .help ~ ul ~ p {
  display: none;
}

.fieldWrapper .help ~ ul li {
  font-size: 12px;
}

.login-form--signup .fieldWrapper:nth-child(3) .help {
  display: none;
}

@media screen and (pointer: fine) {
  .fieldWrapper:hover .help,
  .fieldWrapper:hover .help ~ ul  {
    opacity: 1;
    visibility: visible;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .auth-page {
    padding: 5rem 0.5rem;
    min-height: calc(100vh - 200px);
  }

  .auth-header {
    padding: 1.5rem 1rem;
    margin-bottom: 2rem;
    border-radius: 16px;
  }

  .auth-header__title {
    font-size: 1.5rem;
  }

  .auth-header__subtitle {
    font-size: 0.9rem;
  }

  .auth-card {
    padding: 1.5rem;
    border-radius: 16px;
  }

  .auth-button {
    padding: 0.9rem 2rem;
  }
}

@media (min-width: 769px) {
  .auth-page {
    padding: 7rem 2rem;
  }
}
