/* =============================================
   Wedsi — Resend User Email Verification
============================================= */

html {
  -webkit-text-size-adjust: 100%;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  padding: 40px 20px;
  font-family: "Outfit", sans-serif;
  background-color: #e9e7e7;
  color: #111111;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

input, button {
  color: #111111;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* ---- Spinner ---- */

.spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---- Card ---- */

.auth-card {
  width: 100%;
  max-width: 460px;
  background-color: #ffffff;
  border-radius: 16px;
  padding: 52px 56px 48px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.card-logo {
  display: inline-block;
  margin-bottom: 40px;
}

.card-logo img {
  width: 95px;
  height: auto;
  display: block;
}

.card-title {
  font-family: "Alice", serif;
  font-size: 1.8rem;
  line-height: 2.4rem;
  color: #111111;
  margin: 0 0 10px;
  font-weight: 400;
}

.card-subtitle {
  font-size: 0.9rem;
  color: #777777;
  margin: 0 0 36px;
  font-family: "Outfit", sans-serif;
  line-height: 1.6rem;
}

/* ---- Field ---- */

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #111111;
  margin-bottom: 8px;
  font-family: "Outfit", sans-serif;
}

.field input[type="email"] {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1.5px solid #e2e2e2;
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: "Outfit", sans-serif;
  color: #111111;
  background-color: #ffffff;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
  display: block;
}

.field input[type="email"]:focus {
  border-color: #A62D0D;
}

.field input[type="email"]::placeholder {
  color: #b8b8b8;
  font-weight: 400;
}

/* ---- Error ---- */

.form-error {
  display: none;
  font-size: 0.84rem;
  color: #A62D0D;
  margin-bottom: 14px;
  font-family: "Outfit", sans-serif;
  font-weight: 500;
  line-height: 1.5rem;
}

/* ---- Submit ---- */

.btn-submit {
  width: 100%;
  height: 50px;
  background-color: #A62D0D;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: "Outfit", sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background-color 0.25s ease, transform 0.2s ease;
}

.btn-submit:hover {
  background-color: #8f2509;
  transform: translateY(-1px);
}

.btn-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* ---- Back link ---- */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 24px;
  font-size: 0.84rem;
  color: #999999;
  text-decoration: none;
  font-family: "Outfit", sans-serif;
  transition: color 0.2s;
}

.back-link:hover {
  color: #555555;
}

.back-link svg {
  display: block;
  flex-shrink: 0;
}

/* ---- Success state ---- */

.success-state {
  display: none;
  text-align: center;
  padding: 8px 0;
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: #f4eded;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
}

.success-icon svg {
  display: block;
}

.success-state h2 {
  font-family: "Alice", serif;
  font-size: 1.7rem;
  color: #111111;
  margin: 0 0 12px;
  font-weight: 400;
}

.success-state p {
  font-size: 0.9rem;
  color: #666666;
  line-height: 1.7rem;
  margin: 0 0 6px;
  font-family: "Outfit", sans-serif;
}

.btn-goto-login {
  display: inline-block;
  margin-top: 28px;
  padding: 14px 34px;
  background-color: #A62D0D;
  color: #ffffff;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: "Outfit", sans-serif;
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.2s ease;
}

.btn-goto-login:hover {
  background-color: #8f2509;
  transform: translateY(-1px);
  color: #ffffff;
}

/* ---- Responsive ---- */

@media (max-width: 520px) {
  body {
    padding: 24px 16px 48px;
    align-items: flex-start;
  }

  .auth-card {
    padding: 40px 28px 36px;
    border-radius: 14px;
  }

  .card-title {
    font-size: 1.5rem;
    line-height: 2rem;
  }

  .card-subtitle {
    margin-bottom: 28px;
  }
}

@media (max-width: 360px) {
  .auth-card {
    padding: 32px 20px 28px;
  }
}
