/* =========================================================
   Atom Shaale — Futuristic Student Registration Page
   Color Scheme: #008037 (Green) & Black
   Font: Century Gothic
   ========================================================= */

* {
  font-family: 'Century Gothic', Arial, sans-serif;
}

html,
body {
  height: auto !important;
  min-height: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  background: #000;
  color: #333;
  font-family: 'Century Gothic', Arial, sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  display: block !important;
  position: relative;
  overflow: visible !important;
}

body::before,
body::after {
  display: none !important;
}

/* ====== Main Container ====== */
.register-container {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
  min-height: auto;
  padding: 1.5rem 7vw;
  margin: 0;
}

.register-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-height: none;
  width: 100%;
}

/* ====== Form Section Override ====== */
.form-section {
  width: 100%;
  height: auto;
  min-height: auto;
  max-height: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  margin: 0 auto;
}

.form-card {
  width: 100%;
  height: auto;
  max-width: 500px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 255, 250, 0.98) 100%);
  border: 2px solid #008037;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0, 128, 55, 0.3),
              0 0 40px rgba(0, 128, 55, 0.15),
              inset 0 1px 0 rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: hidden;
}

.form-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(0, 128, 55, 0.03) 10px,
    rgba(0, 128, 55, 0.03) 20px
  );
  animation: shimmer 8s linear infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

/* ====== Form Header ====== */
.form-header {
  margin-bottom: 1.8rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #008037;
  position: relative;
  z-index: 1;
}

.brand-title {
  font-size: 2rem;
  font-weight: 900;
  color: #000;
  text-align: center;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.title-line {
  display: block;
  color: #666;
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
  letter-spacing: 2px;
  font-weight: 300;
}

.highlight-text {
  display: block;
  color: #008037;
  font-size: 2rem;
  font-weight: 900;
  text-shadow: 0 4px 12px rgba(0, 128, 55, 0.25);
  letter-spacing: 1px;
}

.tagline {
  font-size: 0.9rem;
  text-align: center;
  color: #008037;
  margin: 1.2rem 0 0 0;
  line-height: 1.5;
  font-style: italic;
  opacity: 0.8;
}

/* ====== Utility Classes ====== */
.mb-4 { margin-bottom: 0.85rem; }
.mb-6 { margin-bottom: 1.3rem; }
.my-6 { margin: 1.3rem 0; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.rounded-lg { border-radius: 0.5rem; }
.flex { display: flex; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.items-center { align-items: center; }
.w-full { width: 100%; }
.relative { position: relative; }
.absolute { position: absolute; }
.top-3 { top: 0.75rem; }
.left-3 { left: 0.75rem; }
.text-gray-400 { color: #999; }
.text-red-600 { color: #dc2626; }
.text-blue-600 { color: #008037; }
.text-blue-700 { color: #006b2f; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-center { text-align: center; }
.font-semibold { font-weight: 600; }
.mt-1 { margin-top: 0.25rem; }
.bg-blue-50 { background-color: #f0fdf9; }
.border-blue-200 { border-color: #b3e5d4; }
.border { border: 1px solid #d1d5db; }

/* ====== Input Field Styling ====== */
.input-group {
  position: relative;
  margin-bottom: 0.9rem;
  width: 100%;
}

.input-group input,
.input-group select {
  width: 100%;
  padding: 13px 45px 13px 45px;
  border-radius: 10px;
  border: 2px solid #d1d5db;
  background: #ffffff;
  color: #000;
  outline: none;
  font-size: 0.95rem;
  font-family: 'Century Gothic', Arial, sans-serif;
  font-weight: 500;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
  position: relative;
}

.input-group input::placeholder {
  color: #999;
  font-weight: 400;
}

.input-group input:focus,
.input-group select:focus {
  border-color: #008037;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 128, 55, 0.15),
              0 8px 20px rgba(0, 128, 55, 0.15);
  transform: translateY(-2px);
}

/* ====== Icon Positioning ====== */
.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #008037;
  pointer-events: none;
  z-index: 1;
  font-size: 1.1rem;
  font-weight: 600;
}

.input-border {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #008037, #00c266);
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-group input:focus ~ .input-border,
.input-group select:focus ~ .input-border {
  width: 100%;
}

/* ====== Select Field Styling ====== */
.input-group select {
  width: 100%;
  padding: 13px 40px 13px 45px;
  border-radius: 10px;
  border: 2px solid #d1d5db;
  background: #ffffff;
  color: #000;
  outline: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
  position: relative;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23008037' d='M1 1l5 5 5-5' stroke='%23008037' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 38px;
}

.input-group select option {
  background: #ffffff;
  color: #000;
  padding: 10px;
  font-weight: 500;
}

.input-group select option:checked {
  background: linear-gradient(#008037, #008037);
  background-color: #008037;
  color: white;
  font-weight: 600;
}

/* ====== Field Error Messages ====== */
.field-error {
  color: #dc2626;
  font-size: 0.8rem;
  margin-top: 4px;
  display: block;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* ====== Section Divider ====== */
.section-divider {
  margin: 1.8rem 0 1.2rem 0;
  border-top: 2px solid #008037;
  position: relative;
}

.section-divider::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -8px;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: #008037;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #fff;
}

.section-title {
  margin: 0.8rem 0 1.2rem 0;
  text-align: center;
}

.section-title h3 {
  color: #000;
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #008037;
}

/* ====== Grid Layout ====== */
.grid {
  display: grid;
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ====== Register Button ====== */
.register-btn {
  width: 100%;
  margin: 1.5rem 0 0 0;
  padding: 14px;
  border: 2px solid #008037;
  border-radius: 10px;
  background: linear-gradient(135deg, #008037 0%, #006b2f 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  font-family: 'Century Gothic', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 25px rgba(0, 128, 55, 0.35),
              0 0 20px rgba(0, 128, 55, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.register-btn:hover {
  background: linear-gradient(135deg, #006b2f 0%, #004d22 100%);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 128, 55, 0.45),
              0 0 30px rgba(0, 128, 55, 0.25);
  letter-spacing: 2px;
}

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

.btn-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: 0.5s ease;
  transform: translateX(-100%);
  pointer-events: none;
}

.register-btn:hover .btn-glow {
  transform: translateX(100%);
}

.btn-text {
  position: relative;
  z-index: 2;
}

.btn-icon {
  position: relative;
  z-index: 2;
  margin-left: 4px;
  transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1.1rem;
}

.register-btn:hover .btn-icon {
  transform: translateX(4px);
}

/* ====== Message Alerts ====== */
.message-alert {
  border-radius: 10px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  font-size: 0.9rem;
  font-weight: 500;
}

.message-alert.alert-error {
  background: rgba(220, 38, 38, 0.1);
  border: 2px solid #dc2626;
  color: #991b1b;
}

.message-alert.alert-success {
  background: rgba(0, 128, 55, 0.1);
  border: 2px solid #008037;
  color: #004d22;
}

.message-alert i {
  font-size: 1.3rem;
  font-weight: 600;
}

/* ====== Info Message ====== */
.info-message {
  background: linear-gradient(135deg, rgba(0, 128, 55, 0.08) 0%, rgba(0, 128, 55, 0.04) 100%) !important;
  border: 2px solid #008037 !important;
  color: #004d22 !important;
  border-radius: 10px;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 15px !important;
  font-size: 0.9rem;
  font-weight: 500;
}

.info-message i {
  font-size: 1.3rem;
  color: #008037;
  font-weight: 600;
}

/* ====== Form Footer ====== */
.form-footer {
  margin-top: 1.8rem;
  padding-top: 1.5rem;
  border-top: 2px solid #008037;
}

.divider {
  text-align: center;
  color: #008037;
  font-size: 0.8rem;
  margin-bottom: 1rem;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.divider span {
  background: #fff;
  padding: 0 12px;
  position: relative;
  z-index: 1;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #008037 20%, #008037 80%, transparent 100%);
  z-index: 0;
}

.login-link {
  color: #008037;
  text-decoration: none;
  transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  justify-content: center;
  width: 100%;
  padding: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.login-link:hover {
  color: #006b2f;
  text-shadow: 0 0 12px rgba(0, 128, 55, 0.3);
  transform: scale(1.02);
}

.login-link i {
  font-size: 0.85rem;
  transition: 0.3s ease;
}

.login-link:hover i {
  transform: translateX(3px);
}

/* ====== Links Group ====== */
.links-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.links-group a {
  color: #008037;
  text-decoration: none;
  transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.links-group a:hover {
  color: #006b2f;
  text-shadow: 0 0 10px rgba(0, 128, 55, 0.3);
  transform: translateX(-3px);
}

.links-group a i {
  font-size: 0.75rem;
  transition: 0.3s ease;
}

.links-group a:hover i {
  transform: translateX(2px);
}

/* ====== Responsive Design ====== */
@media (max-width: 992px) {
  .register-container {
    display: block;
    text-align: center;
    padding: 1.2rem 1rem;
  }

  .branding-section {
    display: none;
  }

  .form-section {
    width: 100%;
    max-width: 100%;
  }

  .form-card {
    padding: 1.8rem;
  }

  .form-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1.2rem;
  }

  .brand-title {
    font-size: 1.6rem;
  }

  .highlight-text {
    font-size: 1.6rem;
  }
}

@media (max-width: 768px) {
  .register-container {
    padding: 1rem 0.75rem;
  }

  .form-section {
    width: 100%;
    padding: 0;
  }

  .form-card {
    padding: 1.5rem;
    border-radius: 12px;
  }

  .register-btn {
    padding: 12px;
    font-size: 0.95rem;
    letter-spacing: 1px;
  }

  .grid-cols-2 {
    grid-template-columns: 1fr;
  }

  .section-divider {
    margin: 1.5rem 0 1rem 0;
  }

  .section-title h3 {
    font-size: 0.95rem;
  }

  .input-group input,
  .input-group select {
    padding: 11px 35px 11px 40px;
    font-size: 0.9rem;
    border-radius: 8px;
  }

  .input-icon {
    left: 12px;
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .register-container {
    padding: 0.8rem 0.5rem;
  }

  .form-section {
    width: 100%;
    padding: 0;
    margin: 0;
  }

  .form-card {
    padding: 1.3rem;
    border-radius: 12px;
    border-width: 2px;
    width: 100%;
  }

  .brand-title {
    font-size: 1.4rem;
    letter-spacing: 0.5px;
  }

  .highlight-text {
    font-size: 1.4rem;
  }

  .title-line {
    font-size: 0.8rem;
  }

  .tagline {
    font-size: 0.85rem;
  }

  .info-message {
    font-size: 0.8rem;
    padding: 10px 12px !important;
  }

  .input-group {
    margin-bottom: 0.75rem;
  }

  .input-group input,
  .input-group select {
    padding: 10px 35px 10px 38px;
    font-size: 0.9rem;
    border-radius: 8px;
  }

  .input-icon {
    left: 10px;
    font-size: 0.95rem;
  }

  .field-error {
    font-size: 0.75rem;
    margin-top: 3px;
  }

  .mb-4 {
    margin-bottom: 0.7rem;
  }

  .section-divider {
    margin: 1.2rem 0 0.9rem 0;
  }

  .section-title h3 {
    font-size: 0.9rem;
  }

  .register-btn {
    padding: 11px;
    font-size: 0.9rem;
    letter-spacing: 0.8px;
    margin-top: 1.2rem;
  }

  .form-footer {
    margin-top: 1.5rem;
    padding-top: 1.2rem;
  }

  .divider {
    font-size: 0.75rem;
  }

  .login-link {
    font-size: 0.85rem;
    padding: 8px;
  }
}

/* ====== Desktop Tweaks ====== */
@media (min-width: 993px) {
  .input-group input,
  .input-group select {
    padding-right: 45px !important;
  }

  .register-container {
    padding: 1.5rem 7vw;
  }

  .form-card {
    box-shadow: 0 25px 80px rgba(0, 128, 55, 0.25),
                0 0 50px rgba(0, 128, 55, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
  }
}

/* ===== FLOATING LABEL INPUT ===== */
.input-group.floating {
  position: relative;
  margin-bottom: 1.2rem;
}

.input-group.floating input,
.input-group.floating select {
  width: 100%;
  padding: 16px 45px 16px 45px;
  border: 2px solid #ccc;
  border-radius: 10px;
  background: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: 0.3s ease;
}

.input-group.floating label {
  position: absolute;
  left: 45px;
  top: 50%;
  transform: translateY(-50%);
  color: #777;
  font-size: 0.9rem;
  pointer-events: none;
  transition: 0.3s ease;
  background: #fff;
  padding: 0 5px;
}

/* FLOAT EFFECT */
.input-group.floating input:focus + label,
.input-group.floating input:not(:placeholder-shown) + label,
.input-group.floating select:focus + label,
.input-group.floating select:valid + label {
  top: -8px;
  font-size: 0.75rem;
  color: #008037;
}

/* ICON */
.input-group.floating .input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #008037;
}

/* BORDER GLOW */
.focus-border {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #008037, #00c266);
  transition: 0.3s;
}

.input-group.floating input:focus ~ .focus-border,
.input-group.floating select:focus ~ .focus-border {
  width: 100%;
}

/* HOVER EFFECT */
.input-group.floating input:hover,
.input-group.floating select:hover {
  border-color: #008037;
}

/* BUTTON ENHANCEMENT */
.register-btn {
  margin-top: 1.5rem;
  background: linear-gradient(135deg, #008037, #004d22);
  border: none;
  padding: 14px;
  font-weight: bold;
  letter-spacing: 1px;
  border-radius: 10px;
  color: #fff;
  transition: 0.3s;
}

.register-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,128,55,0.4);
}