/* Auth Pages Styling */

.form-container {
  width: 420px;
  max-width: 100%;
  background-color: #fff;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
  border-radius: 16px;
  box-sizing: border-box;
  padding: 40px 40px;
}

.title {
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  margin: 0 0 32px 0;
  font-size: 32px;
  font-weight: 700;
  color: #000;
  letter-spacing: -0.8px;
}

.form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 15px;
}

.input {
  width: 100%;
  border-radius: 12px;
  border: 1.5px solid #e0e0e0;
  outline: 0 !important;
  box-sizing: border-box;
  padding: 16px 18px;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  transition: all 0.2s ease;
  background-color: #f5f7fa;
  color: #1a1a1a;
}

.input:focus {
  border-color: #14b8a6;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.input::placeholder {
  color: #9ca3af;
  font-size: 16px;
}

.input::placeholder {
  color: #999;
}

/* Password Input Wrapper */
.password-input-wrapper {
  position: relative;
  width: 100%;
}

.password-input-wrapper .input {
  padding-right: 45px;
}

.password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  transition: color 0.2s ease;
  border-radius: 4px;
}

.password-toggle:hover {
  color: #1a1a1a;
  background-color: rgba(0, 0, 0, 0.05);
}

.eye-icon {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

.eye-icon.hidden {
  display: none;
}

.page-link {
  text-decoration: none;
  margin: 0;
  text-align: end;
  color: #747474;
}

.page-link-label {
  cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: #6b7280;
  transition: color 0.2s ease;
}

.page-link-label:hover {
  color: #14b8a6;
  text-decoration: underline;
  text-decoration-color: #14b8a6;
}

.form-btn {
  padding: 16px 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  border-radius: 12px;
  border: 0 !important;
  outline: 0 !important;
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
  color: white;
  cursor: pointer;
  box-shadow: rgba(20, 184, 166, 0.25) 0px 4px 12px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  letter-spacing: 0.2px;
  width: 100%;
}

.form-btn:hover {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  box-shadow: rgba(20, 184, 166, 0.35) 0px 6px 16px;
  transform: translateY(-2px);
}

.form-btn:active {
  box-shadow: rgba(20, 184, 166, 0.2) 0px 2px 8px;
  transform: translateY(0);
}

.buttons-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin-top: 25px;
  gap: 12px;
}

.apple-login-button,
.google-login-button {
  border-radius: 20px;
  box-sizing: border-box;
  padding: 12px 15px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Lucida Sans", "Lucida Sans Regular", "Lucida Grande",
    "Lucida Sans Unicode", Geneva, Verdana, sans-serif;
  font-size: 12px;
  font-weight: 600;
  gap: 8px;
  transition: all 0.3s ease;
  border: none;
  position: relative;
  overflow: hidden;
}

.apple-login-button {
  background-color: #000;
  color: #fff;
  border: 2px solid #000;
  box-shadow: rgba(0, 0, 0, 0.2) 0px 4px 12px,
    rgba(0, 0, 0, 0.1) 0px 0px 0px 1px;
}

.apple-login-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.apple-login-button:hover::before {
  width: 300px;
  height: 300px;
}

.apple-login-button:hover {
  background-color: #1a1a1a;
  border-color: #1a1a1a;
  box-shadow: rgba(0, 0, 0, 0.3) 0px 6px 20px,
    rgba(0, 0, 0, 0.15) 0px 0px 0px 1px;
  transform: translateY(-2px);
}

.apple-login-button:active {
  box-shadow: rgba(0, 0, 0, 0.15) 0px 2px 8px,
    rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
  transform: translateY(0);
}

.google-login-button {
  background-color: #fff;
  border: 2px solid #e0e0e0;
  color: #3c4043;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 8px,
    rgba(0, 0, 0, 0.05) 0px 0px 0px 1px;
}

.google-login-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(66, 133, 244, 0.05);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.google-login-button:hover::before {
  width: 300px;
  height: 300px;
}

.google-login-button:hover {
  border-color: #4285f4;
  box-shadow: rgba(66, 133, 244, 0.2) 0px 4px 12px,
    rgba(0, 0, 0, 0.1) 0px 0px 0px 1px;
  transform: translateY(-2px);
  background-color: #f8f9fa;
}

.google-login-button:active {
  box-shadow: rgba(0, 0, 0, 0.08) 0px 2px 6px,
    rgba(0, 0, 0, 0.04) 0px 0px 0px 1px;
  transform: translateY(0);
}

.apple-icon {
  font-size: 20px;
  margin-bottom: 2px;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
}

.google-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-bottom: 1px;
}

/* Form Validation */
.input.error {
  border-color: #ff3d00;
}

.input.success {
  border-color: #4caf50;
}

/* Loading State */
.form-btn.loading {
  opacity: 0.75;
  cursor: not-allowed;
  pointer-events: none;
}

/* Subtitle */
.subtitle {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  color: #6b7280;
  margin: 0 0 28px 0;
  line-height: 1.5;
}

/* Back Link */
.back-link {
  margin-top: 24px;
  text-align: center;
}

.back-link-text {
  display: inline-flex;
  align-items: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s ease;
}

.back-link-text:hover {
  color: #14b8a6;
}

.back-icon {
  width: 18px;
  height: 18px;
  margin-right: 6px;
}

/* Confirm Page Styles */
.confirm-container {
  text-align: center;
}

.confirm-icon-wrapper {
  margin-bottom: 24px;
}

.confirm-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.confirm-icon svg {
  width: 40px;
  height: 40px;
}

.email-icon {
  background-color: #e0f2fe;
  color: #0284c7;
}

.success-icon {
  background-color: #d1fae5;
  color: #10b981;
}

.confirm-title {
  text-align: center;
  margin-bottom: 12px;
}

.confirm-subtitle {
  text-align: center;
  margin-bottom: 24px;
}

.info-box {
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
  text-align: left;
}

.info-text {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  color: #1e40af;
  margin: 0;
  line-height: 1.5;
}

.info-text strong {
  font-weight: 600;
}

/* Password Requirements */
.password-requirements {
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 8px;
}

.requirements-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin: 0 0 12px 0;
}

.requirements-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.requirement-item {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  color: #6b7280;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}

.requirement-item .requirement-icon {
  margin-right: 8px;
  font-size: 16px;
  line-height: 1;
}

.requirement-item.requirement-met {
  color: #10b981;
}

.requirement-item.requirement-met .requirement-icon {
  color: #10b981;
}

.requirement-item.requirement-unmet {
  color: #ef4444;
}

.requirement-item.requirement-unmet .requirement-icon {
  color: #ef4444;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .form-container {
    width: 100%;
    padding: 30px 24px;
  }

  .title {
    font-size: 28px;
  }

  .subtitle {
    font-size: 14px;
  }

  .input {
    padding: 14px 16px;
    font-size: 16px;
  }

  .form-btn {
    padding: 14px 18px;
    font-size: 15px;
  }

  .confirm-icon {
    width: 70px;
    height: 70px;
  }

  .confirm-icon svg {
    width: 36px;
    height: 36px;
  }
}