/* --- GLOBAL STYLES --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(135deg, #07182f 0%, #0d2b4e 100%);
  background-attachment: fixed;
  color: #fff;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
  z-index: 1;
}

/* --- LOADER STYLES --- */
#qaruno-loader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: linear-gradient(135deg, rgba(7,24,47,0.99) 0%, rgba(13,43,78,0.99) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

.loader-bg {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loader-spinner {
  width: 90px;
  height: 90px;
  border: 8px solid transparent;
  border-top: 8px solid #00b5c8;
  border-right: 8px solid #FFD700;
  border-radius: 50%;
  animation: spinGlow 1.2s linear infinite;
  margin-bottom: 2.5rem;
  box-shadow: 0 0 30px rgba(0, 181, 200, 0.5), inset 0 0 20px rgba(255, 215, 0, 0.3);
}

@keyframes spinGlow {
  0% { 
    transform: rotate(0deg);
    box-shadow: 0 0 20px rgba(0, 181, 200, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.7);
  }
  100% { 
    transform: rotate(360deg);
    box-shadow: 0 0 20px rgba(0, 181, 200, 0.5);
  }
}

.loader-brand {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 3.2rem;
  font-family: Montserrat, sans-serif;
  font-weight: 800;
  letter-spacing: 3px;
  text-shadow: 0 4px 25px rgba(0, 138, 165, 0.8);
  margin-bottom: 1.2rem;
  text-align: center;
  line-height: 1.1;
  animation: pulse 2s ease-in-out infinite;
}

.loader-msg {
  color: #cceff5;
  font-size: 1.5rem;
  font-family: Montserrat, sans-serif;
  font-weight: 600;
  text-align: center;
  margin-top: 0.5rem;
  letter-spacing: 1.5px;
  min-height: 2.8em;
  animation: fadeIn 1.5s ease-in-out infinite alternate;
}

/* --- VERIFICATION MESSAGE STYLES --- */
#verification-message {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 24, 47, 0.95);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.verification-overlay {
  background: #fff;
  border-radius: 1.5rem;
  padding: 3rem;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 3px solid #00b5c8;
}

.verification-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.verification-content h2 {
  color: #07182f;
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.verification-content p {
  color: #666;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.verification-note {
  font-size: 0.95rem;
  color: #888;
}

.verification-note a {
  color: #00b5c8;
  text-decoration: none;
  font-weight: 600;
}

.verification-note a:hover {
  text-decoration: underline;
}

.verification-btn {
  background: linear-gradient(135deg, #00b5c8 0%, #008aa5 100%);
  color: white;
  border: none;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 1rem 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.verification-btn:hover {
  background: linear-gradient(135deg, #008aa5 0%, #006f87 100%);
  transform: translateY(-2px);
}

/* --- COOKIE BANNER STYLES --- */
#cookie-banner {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 400px;
  background: rgba(7, 24, 47, 0.97);
  border: 2px solid rgba(0, 181, 200, 0.5);
  border-radius: 1.2rem;
  padding: 1.5rem;
  box-shadow: 0 12px 48px rgba(0, 181, 200, 0.3);
  z-index: 10000;
  backdrop-filter: blur(20px);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  display: none;
  animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#cookie-banner.minimized {
  width: 70px;
  height: 70px;
  padding: 0;
  overflow: hidden;
  bottom: 1rem;
  left: 1rem;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 181, 200, 0.7); }
  50% { box-shadow: 0 0 0 15px rgba(0, 181, 200, 0); }
}

#cookie-banner.minimized .cookie-content {
  display: none;
}

.cookie-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.cookie-title {
  color: #FFD700;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.cookie-close {
  background: rgba(0, 181, 200, 0.1);
  border: none;
  color: #00b5c8;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.3rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-close:hover {
  background: rgba(0, 181, 200, 0.2);
  transform: rotate(90deg) scale(1.1);
}

.cookie-message {
  color: #cceff5;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 0.7rem 1.4rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid #00b5c8;
  text-decoration: none;
  flex: 1;
  text-align: center;
}

.cookie-btn.accept {
  background: linear-gradient(135deg, #00b5c8 0%, #008aa5 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 181, 200, 0.3);
}

.cookie-btn.accept:hover {
  background: linear-gradient(135deg, #008aa5 0%, #006f87 100%);
  border-color: #008aa5;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 181, 200, 0.4);
}

.cookie-btn.settings {
  background: transparent;
  color: #00b5c8;
}

.cookie-btn.settings:hover {
  background: rgba(0, 181, 200, 0.15);
  transform: translateY(-2px);
}

.cookie-icon {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: #00b5c8;
  font-size: 2rem;
}

#cookie-banner.minimized .cookie-icon {
  display: flex;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* --- HEADER STYLES --- */
header {
  background: rgba(7, 24, 47, 0.97);
  padding: 1.3rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(0, 181, 200, 0.2);
  transition: all 0.3s ease;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* --- NAV LOGO WITH IMAGE + TEXT --- */
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.3rem 0;
}

.nav-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.3));
}

.nav-logo-text {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
}

.nav-logo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #FFD700, #00b5c8);
  transition: width 0.3s ease;
}

.nav-logo:hover::after {
  width: 100%;
}

.nav-logo:hover .nav-logo-img {
  transform: scale(1.15) rotate(5deg);
  filter: drop-shadow(0 4px 12px rgba(255, 215, 0, 0.5));
}

.nav-logo:hover .nav-logo-text {
  filter: brightness(1.2);
  transform: translateX(3px);
}

.nav-logo:hover {
  transform: translateY(-2px);
}

/* --- NAV BUTTON STYLES --- */
nav {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.nav-btn, .nav-btn-login {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  padding: 0.7rem 1.8rem;
  font-size: 1rem;
  border-radius: 2rem;
  border: 2px solid #00b5c8;
  background: transparent;
  color: #00b5c8;
  margin-left: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.nav-btn i, .nav-btn-login i {
  font-size: 1.1rem;
}

.nav-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(0, 181, 200, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.nav-btn:hover::before {
  width: 300px;
  height: 300px;
}

.nav-btn:hover, .nav-btn:focus {
  background: rgba(0, 181, 200, 0.1);
  color: #00b5c8;
  border-color: #00b5c8;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 181, 200, 0.3);
}

.nav-btn-login {
  background: linear-gradient(135deg, #00b5c8 0%, #008aa5 100%);
  color: #fff;
  border: 2px solid #00b5c8;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0, 181, 200, 0.35);
}

.nav-btn-login:hover, .nav-btn-login:focus {
  background: linear-gradient(135deg, #008aa5 0%, #006f87 100%);
  color: #fff;
  border-color: #008aa5;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 181, 200, 0.5);
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  background: rgba(0, 181, 200, 0.1);
  border: 2px solid #00b5c8;
  border-radius: 0.6rem;
  font-size: 1.3rem;
  color: #00b5c8;
  cursor: pointer;
  padding: 0.6rem 0.9rem;
  transition: all 0.3s ease;
}

.menu-toggle:hover {
  background: rgba(0, 181, 200, 0.2);
  transform: scale(1.05);
}

/* --- MAIN CONTENT STYLES --- */
main {
  flex: 1 0 auto;
  position: relative;
  z-index: 1;
}

/* --- REGISTER HERO SECTION --- */
.register-hero {
  background: linear-gradient(135deg, rgba(234, 253, 255, 0.08) 0%, rgba(0, 181, 200, 0.05) 100%);
  padding: 4rem 0 6rem 0;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  backdrop-filter: blur(10px);
}

.register-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

/* Register Card */
.register-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 1.5rem;
  padding: 3rem 2.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(15px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.register-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #FFD700 0%, #00b5c8 100%);
}

.register-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.register-header h1 {
  color: #07182f;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.register-header p {
  color: #666;
  font-size: 1.1rem;
  font-weight: 500;
}

/* Form Styles */
.register-form {
  width: 100%;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
  flex: 1;
  min-width: 250px;
}

.form-group-full {
  flex: 100%;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #07182f;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.form-label i {
  color: #00b5c8;
  width: 16px;
}

.form-input, .form-select {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 2px solid #e1e5e9;
  border-radius: 0.75rem;
  background: #fff;
  font-size: 1rem;
  color: #07182f;
  transition: all 0.3s ease;
  font-family: 'Montserrat', sans-serif;
}

.form-input:focus, .form-select:focus {
  border-color: #00b5c8;
  outline: none;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 181, 200, 0.15);
  transform: translateY(-2px);
}

/* Date of Birth Fields */
.dob-fields {
  display: flex;
  gap: 0.7rem;
}

.dob-fields .form-select {
  flex: 1;
}

.dob-label-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.dob-label {
  font-weight: 600;
  color: #07182f;
  font-size: 15px;
}

.info-tooltip {
  position: relative;
  display: inline-block;
  cursor: help;
}

.info-icon {
  font-size: 14px;
  color: #00b5c8;
  width: 18px;
  height: 18px;
  border: 1px solid #00b5c8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: help;
}

.tooltip-text {
  visibility: hidden;
  width: 250px;
  background-color: #07182f;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 10px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 13px;
  line-height: 1.4;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.info-tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* School search styles */
.school-search-container {
  position: relative;
}

#schoolsDropdown {
  display: none;
  position: absolute;
  background: #fff;
  border: 1px solid #e1e5ec;
  border-radius: 0.6rem;
  max-height: 200px;
  overflow-y: auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-top: 5px;
  z-index: 1000;
  width: 100%;
}

#schoolsDropdown div {
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  font-size: 1rem;
  border-bottom: 1px solid #f5f5f5;
  transition: background 0.2s;
  color: #050505;
}

#schoolsDropdown div:hover {
  background-color: #f0f9ff;
}

#selectedSchool {
  margin-top: 0.8rem;
}

.school-pill {
  background: #00b5c8;
  color: #fff;
  border-radius: 1.1rem;
  padding: 0.4rem 1.2rem;
  display: inline-flex;
  align-items: center;
  font-size: 0.95rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.school-pill .close {
  cursor: pointer;
  margin-left: 0.8rem;
  font-weight: bold;
  font-size: 1.1rem;
}

/* Password Wrapper */
.password-wrapper {
  position: relative;
}

.show-hide-btn {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #666;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.show-hide-btn:hover {
  background: rgba(0, 181, 200, 0.1);
  color: #00b5c8;
}

/* Form Notes */
.form-note {
  color: #64748b;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  line-height: 1.4;
}

/* Terms and Conditions */
.terms-container {
  margin: 1.5rem 0;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.95rem;
  color: #666;
  cursor: pointer;
  font-weight: 500;
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid #00b5c8;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background: #00b5c8;
  border-color: #00b5c8;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: '✓';
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.checkbox-label a {
  color: #00b5c8;
  text-decoration: none;
  font-weight: 600;
}

.checkbox-label a:hover {
  text-decoration: underline;
}

/* Error Container */
.error-container {
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.3);
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
  display: none;
  align-items: center;
  gap: 0.75rem;
}

.error-container i {
  color: #ff6b6b;
  font-size: 1.1rem;
}

.error-text {
  color: #d63031;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
}

/* Register Button */
.register-btn {
  background: linear-gradient(135deg, #00b5c8 0%, #008aa5 100%);
  color: white;
  border: none;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 1.1rem 2rem;
  width: 100%;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 181, 200, 0.3);
}

.register-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #008aa5 0%, #006f87 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 181, 200, 0.4);
}

.register-btn:active:not(:disabled) {
  transform: translateY(0);
}

.register-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-text {
  display: block;
}

.btn-loader {
  display: none;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

/* Divider */
.divider {
  text-align: center;
  margin: 2rem 0;
  position: relative;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #e1e5e9 50%, transparent 100%);
}

.divider span {
  background: white;
  padding: 0 1rem;
  color: #666;
  font-size: 0.9rem;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

/* Login Link */
.login-link {
  text-align: center;
}

.login-link p {
  color: #666;
  font-size: 1rem;
  margin: 0;
}

.login-link a {
  color: #00b5c8;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
}

.login-link a:hover {
  color: #008aa5;
  text-decoration: underline;
}

/* SEO Content */
.seo-content {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e1e5e9;
}

.seo-content p {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: center;
}

/* Register Illustration */
.register-illustration {
  padding: 2rem;
}

.illustration-content h2 {
  color: #FFD700;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.illustration-content p {
  color: #cceff5;
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateX(8px);
  border-color: rgba(0, 181, 200, 0.3);
}

.feature-item i {
  color: #00b5c8;
  font-size: 1.3rem;
  width: 24px;
  text-align: center;
}

.feature-item span {
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
}

/* --- FOOTER STYLES --- */
footer {
  background: rgba(7, 24, 47, 0.97);
  color: #fff;
  padding: 3rem 0;
  text-align: center;
  flex-shrink: 0;
  backdrop-filter: blur(15px);
  border-top: 2px solid rgba(0, 181, 200, 0.2);
  position: relative;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 2rem;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.footer-logo:hover {
  opacity: 1;
}

.footer-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: brightness(1.2);
  transition: transform 0.3s ease;
}

.footer-logo:hover .footer-logo-img {
  transform: scale(1.1) rotate(5deg);
}

.footer-logo-text {
  font-size: 1.3rem;
  font-weight: 700;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #00b5c8;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 1.05rem;
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #00b5c8, #FFD700);
  transition: width 0.3s ease;
}

.footer-links a:hover::after {
  width: 100%;
}

.footer-links a:hover {
  color: #FFD700;
  transform: translateY(-3px);
}

.footer-copyright {
  font-size: 1rem;
  color: #cceff5;
}

/* --- BACK TO TOP BUTTON --- */
#backToTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00b5c8 0%, #008aa5 100%);
  color: #fff;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  display: none;
  z-index: 1000;
  box-shadow: 0 6px 24px rgba(0, 181, 200, 0.4);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

#backToTop i {
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}

#backToTop:hover {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  transform: translateY(-6px) scale(1.08);
  box-shadow: 0 10px 32px rgba(255, 215, 0, 0.5);
}

#backToTop:hover i {
  transform: translateY(-3px);
}

#backToTop:active {
  transform: translateY(-3px) scale(1.02);
}

/* --- MEDIA QUERIES --- */
@media (max-width: 1024px) {
  .register-wrapper {
    gap: 3rem;
  }
  
  .register-card {
    padding: 2.5rem 2rem;
  }
  
  .register-header h1 {
    font-size: 2.2rem;
  }
  
  .illustration-content h2 {
    font-size: 2rem;
  }
}

@media (max-width: 900px) {
  .register-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 500px;
  }
  
  .register-illustration {
    order: -1;
    text-align: center;
    padding: 0 2rem;
  }
  
  .feature-list {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .feature-item {
    flex: 1;
    min-width: 200px;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
    width: 100%;
  }
  
  .container {
    width: 100%;
    padding: 0 1rem;
  }
  
  /* Mobile menu styles */
  .menu-toggle {
    display: block;
  }
  
  nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(7, 24, 47, 0.98);
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 181, 200, 0.2);
  }
  
  nav.active {
    display: flex;
  }
  
  .nav-btn, .nav-btn-login {
    width: 100%;
    margin: 0.5rem 0;
    text-align: center;
    margin-left: 0;
    justify-content: center;
  }
  
  .register-hero {
    padding: 2rem 0 4rem 0;
    min-height: auto;
  }
  
  .register-card {
    padding: 2rem 1.5rem;
    margin: 0 1rem;
  }
  
  .register-header h1 {
    font-size: 2rem;
  }
  
  .register-header p {
    font-size: 1rem;
  }
  
  .form-input, .form-select {
    padding: 0.9rem 1.1rem;
    font-size: 0.95rem;
  }
  
  .register-btn {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
  
  .illustration-content h2 {
    font-size: 1.8rem;
  }
  
  .illustration-content p {
    font-size: 1.05rem;
  }
  
  .feature-list {
    flex-direction: column;
  }
  
  .feature-item {
    justify-content: flex-start;
    text-align: left;
  }
  
  #backToTop {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
    bottom: 1.5rem;
    right: 1.5rem;
  }
  
  /* Cookie banner mobile */
  #cookie-banner {
    width: calc(100% - 2rem);
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    margin: 0 auto;
  }
  
  #cookie-banner.minimized {
    width: 50px;
    height: 50px;
    bottom: 0.5rem;
    left: 0.5rem;
    right: auto;
  }
  
  .cookie-buttons {
    flex-direction: column;
  }
  
  .cookie-btn {
    flex: none;
  }
  
  /* Footer mobile */
  footer .container {
    padding: 0 1rem;
  }
  
  .footer-links {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem 0.5rem;
    max-width: 100%;
    text-align: center;
    margin-bottom: 1.5rem;
  }
  
  .footer-links a {
    margin: 0;
    font-size: 0.88rem;
    white-space: normal;
    line-height: 1.3;
    padding: 0 0.2rem;
  }
  
  .footer-links a:hover {
    color: #FFD700;
    transform: scale(1.05);
  }
}

@media (max-width: 480px) {
  .register-card {
    padding: 1.5rem;
    margin: 0 0.5rem;
  }
  
  .register-header h1 {
    font-size: 1.8rem;
  }
  
  .form-row {
    flex-direction: column;
    gap: 1rem;
  }
  
  .feature-item {
    padding: 0.8rem;
  }
  
  .feature-item i {
    font-size: 1.1rem;
  }
  
  .feature-item span {
    font-size: 0.9rem;
  }
  
  .footer-links {
    gap: 0.8rem 0.3rem;
  }
  
  .footer-links a {
    font-size: 0.85rem;
  }
}

/* Fix illustration alignment */
.register-illustration {
  padding: 2rem;
  display: flex;
  align-items: flex-start; /* Align to top */
  justify-content: center;
}

.illustration-content {
  margin-top: 0; /* Remove any top margin */
}

/* Fix terms container layout */
.terms-container {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin: 1.5rem 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.terms-container .checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.95rem;
  color: #666;
  cursor: pointer;
  font-weight: 500;
  line-height: 1.5;
  margin: 0;
  padding: 0;
}

.terms-container .checkbox-label input[type="checkbox"] {
  display: none;
}

.terms-container .checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid #00b5c8;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.terms-container .checkbox-label input[type="checkbox"]:checked + .checkmark {
  background: #00b5c8;
  border-color: #00b5c8;
}

.terms-container .checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: '✓';
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.terms-container a {
  color: #00b5c8;
  text-decoration: none;
  font-weight: 600;
}

.terms-container a:hover {
  text-decoration: underline;
}

/* School validation fix */
.school-search-container .form-input:valid ~ #selectedSchool:not(:empty) {
  border-color: #00b5c8;
}

/* Mobile fixes for terms */
@media (max-width: 768px) {
  .terms-container {
    align-items: flex-start;
  }
  
  .terms-container .checkbox-label {
    align-items: flex-start;
    text-align: left;
  }
}

/* Ensure form elements are properly aligned */
.register-wrapper {
  align-items: flex-start; /* Align both columns to top */
}

.register-card, .register-illustration {
  margin-top: 0;
}