/* Variables */
/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  min-height: 100vh;
  color: #1e293b;
  line-height: 1.6;
}

/* Container */
.container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

/* Registration Card */
.registration-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  padding: 40px;
  width: 100%;
  max-width: 1200px;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s ease-out;
}

.registration-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1e40af, #3b82f6);
}

/* Login Card */
.login-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  padding: 40px;
  width: 100%;
  max-width: 1200px;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s ease-out;
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1e40af, #3b82f6);
}

/* Back Button */
.back-button {
  margin-bottom: 24px;
}

.back-button .back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1e40af;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease;
}

.back-button .back-link:hover {
  color: #1d4ed8;
  transform: translateX(-2px);
}

.back-button .back-link i {
  font-size: 16px;
}

/* Card Header */
.card-header {
  text-align: center;
  margin-bottom: 40px;
}

.card-header h1 {
  font-size: 32px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}

.card-header p {
  color: #64748b;
  font-size: 16px;
}

/* Content Wrapper */
.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

@media (max-width: 768px) {
  .content-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* Form Section */
.form-section h2 {
  font-size: 24px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 24px;
}

/* Info Section */
.info-section h2 {
  font-size: 24px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 24px;
}

.info-section .info-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-section .info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: rgba(30, 64, 175, 0.02);
  border: 1px solid rgba(30, 64, 175, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.info-section .info-item:hover {
  background: rgba(30, 64, 175, 0.05);
  border-color: rgba(30, 64, 175, 0.2);
}

.info-section .info-item .info-icon {
  width: 40px;
  height: 40px;
  background: #1e40af;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-section .info-item .info-icon i {
  font-size: 18px;
}

.info-section .info-item .info-content {
  flex: 1;
}

.info-section .info-item .info-content h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 8px;
}

.info-section .info-item .info-content p {
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.info-section .info-item .info-content .register-link {
  display: inline-block;
  color: #1e40af;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  padding: 8px 16px;
  border: 2px solid #1e40af;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.info-section .info-item .info-content .register-link:hover {
  background: #1e40af;
  color: #ffffff;
}

.info-section .info-item .info-content .contact-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-section .info-item .info-content .contact-info span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
}

.info-section .info-item .info-content .contact-info span i {
  color: #1e40af;
  width: 16px;
}

/* Instructions Section */
.instructions-section h2 {
  font-size: 24px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 24px;
}

.instructions-section .instructions-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.instructions-section .instruction-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.instructions-section .instruction-item .instruction-number {
  background: #1e40af;
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}

.instructions-section .instruction-item .instruction-content {
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}

/* Form Styles */
.registration-form,
.login-form {
  .form-group {
    margin-bottom: 20px;
  }
}

.registration-form .form-group label,
.login-form .form-group label {
  display: block;
  font-weight: 500;
  color: #1e293b;
  margin-bottom: 8px;
  font-size: 14px;
}

.registration-form .form-group input,
.registration-form .form-group textarea,
.login-form .form-group input,
.login-form .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: #ffffff;
}

.registration-form .form-group input:focus,
.registration-form .form-group textarea:focus,
.login-form .form-group input:focus,
.login-form .form-group textarea:focus {
  outline: none;
  border-color: #1e40af;
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.registration-form .form-group input::placeholder,
.registration-form .form-group textarea::placeholder,
.login-form .form-group input::placeholder,
.login-form .form-group textarea::placeholder {
  color: #94a3b8;
}

.registration-form .form-group textarea,
.login-form .form-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* Password Input */
.password-input {
  position: relative;
}

.password-input input {
  padding-right: 50px;
}

.password-input .toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.password-input .toggle-password:hover {
  color: #1e293b;
  background: rgba(0, 0, 0, 0.05);
}

/* File Input */
.file-input {
  position: relative;
}

.file-input input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.file-input .file-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border: 2px dashed #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.file-input .file-label:hover {
  border-color: #1e40af;
  background: rgba(30, 64, 175, 0.05);
}

.file-input .file-label i {
  color: #94a3b8;
  font-size: 16px;
}

.file-input .file-label span {
  color: #64748b;
  font-size: 14px;
}

.file-input .file-name {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: #94a3b8;
}

/* Checkbox Styles */
.checkbox-group .checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  color: #64748b;
}

.checkbox-group .checkbox-label input[type="checkbox"] {
  display: none;
}

.checkbox-group .checkbox-label .checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid #e2e8f0;
  border-radius: 4px;
  position: relative;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.3s ease;
}

.checkbox-group .checkbox-label .checkmark::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-size: 12px;
  opacity: 0;
  transition: all 0.3s ease;
}

.checkbox-group .checkbox-label input[type="checkbox"]:checked + .checkmark {
  background: #1e40af;
  border-color: #1e40af;
}

.checkbox-group .checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  opacity: 1;
}

/* Radio Group - Updated with arrow icons */
.radio-group {
  display: flex;
  gap: 20px;
}

@media (max-width: 480px) {
  .radio-group {
    flex-direction: column;
    gap: 12px;
  }
}

.radio-group .radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #94a3b8;
  transition: all 0.3s ease;
}

.radio-group .radio-label input[type="radio"] {
  display: none;
}

.radio-group .radio-label .radio-custom {
  width: 16px;
  height: 16px;
  position: relative;
  transition: all 0.3s ease;
}

.radio-group .radio-label .radio-custom::before {
  content: '\f062';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: transparent;
  font-size: 12px;
  transition: all 0.3s ease;
}

.radio-group .radio-label input[type="radio"]:checked + .radio-custom::before {
  color: #1e40af;
}

.radio-group .radio-label input[type="radio"]:checked ~ span {
  color: #1e293b;
  font-weight: 500;
}

/* Forgot Password */
.forgot-password {
  text-align: center;
  margin-top: 16px;
}

.forgot-password a {
  color: #1e40af;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.forgot-password a:hover {
  text-decoration: underline;
}

/* Payment Notes */
.payment-notes {
  background: rgba(30, 64, 175, 0.05);
  border: 1px solid rgba(30, 64, 175, 0.2);
  border-radius: 8px;
  padding: 20px;
  margin: 24px 0;
}

.payment-notes h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1e40af;
  margin-bottom: 12px;
}

.payment-notes p {
  color: #64748b;
  font-size: 14px;
  margin-bottom: 12px;
  line-height: 1.5;
}

.payment-notes ul {
  list-style: none;
  padding: 0;
}

.payment-notes ul li {
  color: #64748b;
  font-size: 14px;
  margin-bottom: 8px;
  padding-left: 16px;
  position: relative;
}

.payment-notes ul li::before {
  content: '•';
  color: #1e40af;
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Submit Button */
.submit-btn {
  width: 100%;
  background: #1e40af;
  color: #ffffff;
  border: none;
  padding: 16px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  background: #1d4ed8;
}

.submit-btn:active {
  transform: translateY(0);
}

.submit-btn i {
  font-size: 18px;
}

/* Login Link */
.login-link {
  text-align: center;
  font-size: 14px;
  color: #64748b;
  margin-top: 24px;
}

.login-link a {
  color: #1e40af;
  text-decoration: none;
  font-weight: 500;
}

.login-link a:hover {
  text-decoration: underline;
}

/* Scroll to top button */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #1e40af;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  z-index: 1000;
}

.scroll-top:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.scroll-top i {
  font-size: 18px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .registration-card,
  .login-card {
    padding: 24px;
    margin: 10px;
  }
  
  .card-header h1 {
    font-size: 24px;
  }
  
  .content-wrapper {
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 10px;
  }
  
  .registration-card,
  .login-card {
    padding: 20px;
  }
  
  .card-header h1 {
    font-size: 22px;
  }
  
  .form-group input,
  .form-group textarea {
    font-size: 16px;
  }
  
  .scroll-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Error states */
.form-group.error input,
.form-group.error textarea {
  border-color: #ef4444;
}

.form-group.error input:focus,
.form-group.error textarea:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group.error .error-message {
  color: #ef4444;
  font-size: 12px;
  margin-top: 4px;
}

/* Success states */
.form-group.success input,
.form-group.success textarea {
  border-color: #22c55e;
}

/* Loading state */
.submit-btn.loading {
  opacity: 0.7;
  cursor: not-allowed;
}

.submit-btn.loading i {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
} 