@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@200;300;400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Open Sans", sans-serif;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
  padding: 1rem;
  position: relative;
  z-index: 1;
  overflow-y: auto;
  background-color: #000;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../img/background/12.jpg") center/cover no-repeat, #000;
  z-index: -2;
}

/* ========== BLOB ANIMATIONS ========== */
.blob {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(138, 43, 226, 0.25);
  filter: blur(60px);
  z-index: -1;
  animation: moveBlob 18s infinite ease-in-out;
}
.blob:nth-child(2) {
  width: 400px;
  height: 400px;
  background: rgba(255, 126, 0, 0.2);
  animation-duration: 22s;
  animation-delay: -5s;
}
.blob:nth-child(3) {
  width: 250px;
  height: 250px;
  background: rgba(0, 150, 255, 0.2);
  animation-duration: 15s;
  animation-delay: -10s;
}
@keyframes moveBlob {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 40px) scale(0.9); }
  100% { transform: translate(0, 0) scale(1); }
}

/* ========== PAGE CONTAINER ========== */
.page-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

/* Mascot – mobile first (reduced size) */
.mascot-header {
  text-align: center;
  width: 100%;
  max-width: 240px;
  margin: 0 auto;
}
.mascot-header img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Form wrapper – mobile first */
.wrapper {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  border-radius: 2rem;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

/* ========== FORM ELEMENTS ========== */
form {
  display: flex;
  flex-direction: column;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #fff;
}

/* Input fields – fully rounded */
.input-field {
  margin: 0.75rem 0;
}
.input-field input,
.input-field select {
  width: 100%;
  height: 48px;
  background-color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 2rem;
  padding: 0 1rem;
  font-size: 1rem;
  color: #000;
  outline: none;
  transition: all 0.2s;
}
.input-field select {
  background-color: rgba(255, 255, 255, 0.85);
  color: #000;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}
.input-field input:focus,
.input-field select:focus {
  background: white;
  border-color: #ff8c00;  /* orange */
  box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.2);
}
.input-field label {
  display: none;
}
::placeholder {
  color: rgba(0, 0, 0, 0.5);
}

/* ========== BUTTONS ========== */
button {
  background: linear-gradient(135deg, #ff8c00, #ff5500); /* orange gradient */
  color: #fff;
  font-weight: 600;
  border: none;
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-radius: 2rem;
  font-size: 1rem;
  transition: 0.3s ease;
  margin-top: 0.5rem;
}
button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 85, 0, 0.3);
}

/* ========== SUBJECTS DROPDOWN – fully rounded & orange accent ========== */
.subjects-section {
  margin: 1rem 0;
  text-align: left;
}
.subjects-section > label {
  font-size: 0.9rem;
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
  color: #ffffff;
}
.dropdown {
  position: relative;
  width: 100%;
}
.dropdown-toggle {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 2rem;
  text-align: left;
  cursor: pointer;
  font-size: 1rem;
  color: #000;
  transition: all 0.2s;
}
.dropdown-toggle:hover,
.dropdown-toggle:focus {
  border-color: #ff8c00;
  outline: none;
}
.dropdown-menu {
  display: none;
  position: absolute;
  width: 100%;
  max-height: 220px;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-radius: 1.5rem;       /* fully rounded */
  margin-top: 0.5rem;
  padding: 0.75rem;
  z-index: 1000;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
.dropdown-menu label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #000;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  border-radius: 2rem;          /* rounded items inside */
  transition: background 0.2s;
}
.dropdown-menu input[type="checkbox"] {
  accent-color: #ff8c00;        /* orange checkboxes */
  transform: scale(1.1);
}
.dropdown-menu label:hover {
  background: rgba(255, 140, 0, 0.15);
}
/* ========== MESSAGES ========== */
ul.messages {
  list-style: none;
  padding: 0;
  margin: 1rem auto;
  width: 100%;
  max-width: 500px;
}
ul.messages li {
  color: #ffffff;
  background: rgba(0,0,0,0.6);
  padding: 0.75rem 1rem;
  border-radius: 2rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
  text-align: center;
}
ul.messages li.success { border-left: 4px solid #4caf50; }
ul.messages li.error   { border-left: 4px solid #f44336; }
ul.messages li.warning { border-left: 4px solid #ff9800; }
ul.messages li.info    { border-left: 4px solid #2196f3; }

/* ========== LINKS – no underlines ========== */
a {
  color: orange;
  font-weight: 600;
  text-decoration: none;
}
a:hover {
  color: #ffb300;
  text-decoration: none;
}

/* ========== REGISTER / LOGIN FOOTER ========== */
.register {
  text-align: center;
  margin-top: 1.5rem;
  color: #ffffff;
  font-size: 0.9rem;
}
.forget {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1rem 0 1.5rem;
  color: #ffffff;
  flex-wrap: wrap;
  gap: 0.5rem;
}
#remember {
  accent-color: #ff8c00; /* orange checkbox */
}
.forget label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffffff;
}
.forget a {
  color: orange;
}

/* ========== FORM LINKS MENU (3D effect) ========== */
.form-links {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}
.form-links .menu-item {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 2rem;
  transition: all 0.3s ease;
  background-color: #f9f9f9;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}
.form-links .menu-icon {
  width: 18px;
  height: 18px;
  margin-right: 0.3rem;
  vertical-align: middle;
}
.form-links .menu-item:hover {
  background-color: #ff8c00;  /* orange hover */
  color: #fff;
  transform: translateY(-2px);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15));
}
.form-links .menu-item:hover .menu-icon {
  filter: brightness(0) invert(1);
}
.form-links .menu-item.active {
  background-color: #ff8c00;  /* orange active */
  color: #fff;
}
.form-links .menu-item.active .menu-icon {
  filter: brightness(0) invert(1);
}

/* ========== LOGO ========== */
.logo {
  max-width: 150px;
  height: auto;
  margin-bottom: 0.5rem;
}

/* ========== RESPONSIVE (tablet and desktop) ========== */
@media (min-width: 768px) {
  .page-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
    padding: 2rem;
  }
  .mascot-header {
    flex: 0 0 40%;
    max-width: 400px;
  }
  .wrapper {
    flex: 1;
    max-width: 500px;
    padding: 2rem;
  }
  .logo {
    max-width: 200px;
  }
  h2 {
    font-size: 2rem;
  }
  .form-links .menu-item {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }
}

@media (min-width: 1024px) {
  .mascot-header {
    flex: 0 0 450px;
  }
  .wrapper {
    max-width: 550px;
  }
  .mascot-header img {
    max-height: 600px;
    width: auto;
  }
}
/* Custom dropdown menu items – rounded */
.custom-dropdown-menu {
  border-radius: 1.5rem;
  overflow: hidden;
}
.dropdown-option {
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background 0.2s;
  border-radius: 2rem;
  margin: 0.25rem 0.5rem;
}
.dropdown-option:hover {
  background: rgba(255, 140, 0, 0.15);
}
/* Dropdown arrow icon (replaces text arrow) */
.dropdown-arrow {
  font-size: 0.8rem;
  margin-left: 0.5rem;
  transition: transform 0.2s;
}
.dropdown-toggle:hover .dropdown-arrow {
  transform: translateY(2px);
}

/* Password toggle icon – already in inline style, but ensure positioning */
.password-wrapper {
  position: relative;
  width: 100%;
}
.toggle-password {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  width: 20px;
  height: 20px;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.toggle-password:hover {
  opacity: 1;
}
.toggle-password.hide {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23666'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.542-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l3.59 3.59m0 0A9.953 9.953 0 0112 5c4.478 0 8.268 2.943 9.542 7a10.025 10.025 0 01-4.132 5.411m0 0L21 21'%3E%3C/path%3E%3C/svg%3E");
}

/* Strength meter styling */
.strength-meter {
  margin-top: 0.25rem;
  height: 4px;
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
  overflow: hidden;
}
.strength-bar {
  width: 0%;
  height: 100%;
  transition: width 0.3s, background 0.3s;
}
.strength-bar.weak { background: #f44336; width: 33%; }
.strength-bar.medium { background: #ff9800; width: 66%; }
.strength-bar.strong { background: #4caf50; width: 100%; }
.strength-text {
  font-size: 0.7rem;
  margin-top: 0.25rem;
  color: #ccc;
  text-align: right;
}
/* Selected dropdown text color - orange */
.dropdown-toggle.selected,
.dropdown-toggle.selected * {
  color: #ff8c00 !important;
}

.dropdown-toggle.selected svg polyline,
.dropdown-toggle.selected svg path {
  stroke: #ff8c00 !important;
}
/* Force selected dropdown text to orange */
.dropdown-toggle.selected,
.dropdown-toggle.selected * {
  color: #ff8c00 !important;
}
.dropdown-toggle.selected svg polyline,
.dropdown-toggle.selected svg path {
  stroke: #ff8c00 !important;
}

/* ========== NEW: MOBILE ADJUSTMENTS – mascot + form fit without scrolling ========== */
@media (max-width: 767px) {
  .page-container {
    gap: 0.5rem;
    padding: 0.5rem;
  }
  .wrapper {
    padding: 1rem;
    border-radius: 1.5rem;
  }
  .mascot-header {
    max-width: 180px;
  }
  h2 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
  }
  .form-links {
    margin: 0.5rem 0;
    gap: 0.4rem;
  }
  .form-links .menu-item {
    padding: 0.3rem 0.6rem;
    font-size: 0.7rem;
  }
  .social-login {
    margin: 0.5rem 0;
  }
  .google-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
  .input-field {
    margin: 0.4rem 0;
  }
  .input-field input,
  .input-field select {
    height: 42px;
    font-size: 0.9rem;
  }
  button {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
}