/* ===========================
   Base Styles & Reset
   =========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8f5e9 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  line-height: 1.6;
  color: #374151;
}

/* ===========================
   Container
   =========================== */
.container {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 480px;
  padding: 40px 32px;
  position: relative;
  animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===========================
   Header Section
   =========================== */
.header {
  text-align: center;
  margin-bottom: 32px;
}

.logo-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  border-radius: 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
}

.logo-container img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.header h1 {
  color: #1a1a1a;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.header p {
  color: #6b7280;
  font-size: 15px;
  margin-bottom: 16px;
  line-height: 1.5;
}

.header p strong {
  color: #28a745;
  font-weight: 600;
}

.quick-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0fdf4;
  color: #166534;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #bbf7d0;
}

/* ===========================
   Info Banner
   =========================== */
.info-banner {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 28px;
  display: flex;
  gap: 12px;
  align-items: start;
}

.info-banner i {
  color: #28a745;
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.info-banner-content {
  flex: 1;
}

.info-banner-content strong {
  color: #166534;
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 600;
}

.info-banner-content p {
  color: #166534;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

/* ===========================
   Form Styles
   =========================== */
.form-group {
  margin-bottom: 20px;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.input-row .form-group {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  color: #374151;
  font-weight: 500;
  margin-bottom: 8px;
  font-size: 14px;
}

.input-field {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.2s ease;
  background: #fff;
  color: #1a1a1a;
}

.input-field:focus {
  outline: none;
  border-color: #28a745;
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.input-field::placeholder {
  color: #9ca3af;
}

.password-container {
  position: relative;
}

.eye-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  cursor: pointer;
  transition: color 0.2s;
  font-size: 18px;
}

.eye-icon:hover {
  color: #28a745;
}

/* ===========================
   Trust Badges
   =========================== */
.trust-badges {
  background: #f9fafb;
  border-radius: 10px;
  padding: 12px;
  margin: 20px 0;
  text-align: center;
}

.trust-badges p {
  color: #28a745;
  font-size: 13px;
  font-weight: 500;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.trust-badges span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ===========================
   Checkbox
   =========================== */
.checkbox-group {
  display: flex;
  align-items: start;
  gap: 12px;
  margin: 24px 0;
  cursor: pointer;
}

.custom-checkbox {
  position: relative;
  flex-shrink: 0;
  margin-top: 2px;
}

.custom-checkbox input {
  opacity: 0;
  position: absolute;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid #d1d5db;
  border-radius: 5px;
  display: block;
  position: relative;
  transition: all 0.2s ease;
  background: #fff;
}

.custom-checkbox input:checked + .checkmark {
  background: #28a745;
  border-color: #28a745;
}

.custom-checkbox input:checked + .checkmark::after {
  content: '✓';
  position: absolute;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.checkbox-label {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.5;
  flex: 1;
}

.checkbox-label a {
  color: #28a745;
  text-decoration: none;
  font-weight: 500;
}

.checkbox-label a:hover {
  text-decoration: underline;
}

/* ===========================
   Submit Button
   =========================== */
.submit-btn {
  width: 100%;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: #fff;
  padding: 14px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.25);
}

.submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(40, 167, 69, 0.35);
}

.submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.loading-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}

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

/* ===========================
   Form Footer
   =========================== */
.form-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #f3f4f6;
}

.form-footer p {
  color: #6b7280;
  font-size: 14px;
  margin: 0;
}

.form-footer a {
  color: #28a745;
  text-decoration: none;
  font-weight: 600;
}

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

/* ===========================
   Benefits Section
   =========================== */
.benefits {
  background: #f9fafb;
  border-radius: 12px;
  padding: 24px;
  margin: 24px 0;
}

.benefits h3 {
  color: #1a1a1a;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  text-align: center;
}

.benefits ul {
  list-style: none;
  display: grid;
  gap: 12px;
}

.benefits li {
  color: #374151;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.benefits li i {
  color: #28a745;
  font-size: 16px;
}

/* ===========================
   Additional Links
   =========================== */
.additional-links {
  text-align: center;
  margin: 20px 0;
}

.additional-links p {
  margin: 8px 0;
}

.additional-links a {
  color: #28a745;
  text-decoration: none;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.additional-links a:hover {
  color: #1e7e34;
  text-decoration: underline;
}

.additional-links i {
  font-size: 14px;
}

/* ===========================
   Footer
   =========================== */
.footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #f3f4f6;
}

.footer p {
  color: #9ca3af;
  font-size: 13px;
  margin: 0;
}

/* ===========================
   Success Modal
   =========================== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

.modal-content {
  background: #fff;
  padding: 40px;
  border-radius: 16px;
  text-align: center;
  max-width: 400px;
  margin: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  animation: modalSlideUp 0.4s ease-out;
}

.modal-icon {
  margin-bottom: 20px;
}

.modal-icon i {
  font-size: 64px;
  color: #28a745;
}

.modal-content h3 {
  color: #1a1a1a;
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 600;
}

.modal-content p {
  color: #6b7280;
  margin-bottom: 24px;
  line-height: 1.5;
  font-size: 15px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 480px) {
  body {
    padding: 12px;
  }

  .container {
    padding: 28px 20px;
  }

  .header h1 {
    font-size: 24px;
  }

  .input-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .trust-badges p {
    flex-direction: column;
    gap: 8px;
  }

  .benefits {
    padding: 20px 16px;
  }

  .modal-content {
    padding: 32px 24px;
    margin: 16px;
  }
}

/* ===========================
   Focus States (Accessibility)
   =========================== */
.input-field:focus,
.custom-checkbox input:focus + .checkmark,
.submit-btn:focus {
  outline: 2px solid rgba(40, 167, 69, 0.5);
  outline-offset: 2px;
}