/* ============================================
   MODERN REGISTRATION PAGE STYLES
   Western Crop Genetics Alliance
   ============================================ */

/* Register Container */
.register-container {
  min-height: 96vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: #FFFFFF;
  padding: 20px 15px 40px;
  position: relative;
  overflow: visible;
}

/* Decorative Background Pattern */
.register-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 30% 70%, rgba(36, 89, 83, 0.25) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(60, 72, 107, 0.25) 0%, transparent 50%);
  pointer-events: none;
}

/* Register Card */
.register-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  width: 100%;
  max-width: 520px;
  position: relative;
  z-index: 1;
  animation: fadeIn 0.5s ease;
}

/* Header Section */
.register-header {
  background: linear-gradient(135deg, #245953 0%, #1e4541 100%);
  padding: 35px 30px;
  text-align: center;
  color: white;
}

.register-logo {
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 32px;
  color: white;
}

.register-title {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: 0.5px;
}

.register-subtitle {
  font-size: 14px;
  opacity: 0.95;
  margin: 0;
  line-height: 1.5;
}

/* Admin Contact Info */
.register-admin-info {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 15px 20px;
  margin-top: 20px;
  font-size: 13px;
  line-height: 1.6;
}

.register-admin-info a {
  color: white;
  text-decoration: underline;
  font-weight: 500;
}

.register-admin-info a:hover {
  color: #e8f5e9;
}

/* Body Section */
.register-body {
  padding: 35px 30px;
}

/* Form Groups */
.form-group-modern {
  margin-bottom: 22px;
}

.form-label-modern {
  font-weight: 600;
  font-size: 15px;
  color: #333;
  margin-bottom: 8px;
  display: block;
}

.form-label-modern i {
  margin-right: 6px;
  color: #245953;
}

/* Input Fields */
.input-wrapper {
  position: relative;
}

.input-wrapper input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: #fafafa;
}

.input-wrapper input:focus {
  border-color: #245953;
  background: white;
  box-shadow: 0 0 0 4px rgba(36, 89, 83, 0.1);
  outline: none;
}

.input-wrapper input::placeholder {
  color: #aaa;
}

/* Error States */
.input-wrapper input.is-invalid {
  border-color: #dc3545;
  background: #fff5f5;
}

.invalid-feedback {
  display: block;
  font-size: 13px;
  color: #dc3545;
  margin-top: 6px;
}

.form-text-error {
  font-size: 13px;
  color: #dc3545;
  margin-top: 6px;
  display: block;
}

/* Password Requirements */
.password-requirements {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 12px 15px;
  margin-top: 8px;
  font-size: 13px;
  color: #666;
}

.password-requirements ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.password-requirements li {
  margin-bottom: 4px;
}

/* Button Styles */
.btn-register {
  width: 100%;
  padding: 16px 28px;
  background: linear-gradient(135deg, #245953 0%, #1e4541 100%);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(36, 89, 83, 0.3);
  margin-top: 10px;
}

.btn-register:hover {
  background: linear-gradient(135deg, #1e4541 0%, #183a38 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(36, 89, 83, 0.4);
}

.btn-register:active {
  transform: translateY(0);
}

/* Divider */
.register-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 25px 0;
}

.register-divider::before,
.register-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e0e0e0;
}

.register-divider span {
  padding: 0 15px;
  color: #888;
  font-size: 14px;
}

/* Footer Links */
.register-footer {
  padding: 20px 25px 25px;
  background: #f8f9fa;
  text-align: center;
}

.register-footer p {
  margin: 0 0 15px;
  color: #666;
  font-size: 14px;
}

.register-footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.register-footer-links a {
  color: #245953;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.register-footer-links a:hover {
  color: #1e4541;
  text-decoration: underline;
}

/* Alert Styles */
.alert-custom {
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 24px;
  border: none;
  font-size: 14px;
}

.alert-custom.alert-danger {
  background: #fff5f5;
  color: #c0392b;
  border-left: 4px solid #c0392b;
}

.alert-custom.alert-success {
  background: #f0fff4;
  color: #27ae60;
  border-left: 4px solid #27ae60;
}

/* Form Text Info */
.form-text-info {
  font-size: 13px;
  color: #666;
  margin-top: 6px;
  display: block;
}

/* Responsive Design */
@media (max-width: 576px) {
  .register-container {
    padding: 15px 10px 30px;
  }
  
  .register-card {
    max-width: 100%;
  }
  
  .register-header {
    padding: 28px 20px;
  }
  
  .register-title {
    font-size: 24px;
  }
  
  .register-subtitle {
    font-size: 13px;
  }
  
  .register-admin-info {
    font-size: 12px;
    padding: 12px 15px;
  }
  
  .register-body {
    padding: 28px 20px;
  }
  
  .register-footer {
    padding: 18px 20px 22px;
  }
  
  .register-footer-links {
    flex-direction: column;
    gap: 12px;
  }
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Icon styling for input fields */
.input-icon-wrapper {
  position: relative;
}

.input-icon-wrapper input {
  padding-left: 45px !important;
}

.input-icon-wrapper::before {
  content: '';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  font-size: 16px;
  pointer-events: none;
  z-index: 10;
}

/* Field-specific icons */
.input-icon-user::before { content: '\f007'; }
.input-icon-envelope::before { content: '\f0e0'; }
.input-icon-lock::before { content: '\f023'; }
.input-icon-key::before { content: '\f084'; }
.input-icon-id::before { content: '\f2c0'; }
