/* Background image is set inline in login.blade.php / contact from DB (avoids stale CSS overriding uploads) */
body, html {
    height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #1a2a4a;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  
.main-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 100%;
}
  
  .logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: -50px;
    z-index: 10;
    position: relative;
  }
  
  .logo-round {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid rgb(176, 176, 176);
    background: white;
    box-shadow: 0 4px 8px rgba(203, 200, 200, 0.2);
  }
  
  
  .login-container {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 30px;
    width: 350px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.708);
    text-align: center;
    color: rgb(255, 255, 255);
  }
  
  
  
  .title {
    font-size: 35px;
    margin-bottom: 20px;
    color: #00c8ff;
  }
  .title.admin { color: #00c8ff; }
  .title.adviser { color: #ffca28; }
  
  /* Role toggle */
  .role-toggle { display: flex; gap: 10px; justify-content: center; margin: 10px 0 18px 0; }
  .role-vertical { flex-direction: column; align-items: stretch; gap: 12px; }
  .role-vertical .role-btn { width: 100%; }
  .role-btn {
    padding: 12px 16px;
    border-radius: 24px;
    border: 2px solid rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.15);
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  }
  .role-btn:hover { transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
  .role-btn.active { background: #00c8ff; color: #0b0b0b; border-color: #b3e5fc; }
  .role-btn.adviser-active { background: #ffca28; color: #0b0b0b; border-color: #ffe082; }
  
  /* Themed chooser buttons - solid colors */
  #roleToggle #btnRoleAdmin {
    background: #1976d2; /* solid blue */
    border-color: #64b5f6;
    color: #ffffff;
  }
  #roleToggle #btnRoleAdmin:hover { background: #1565c0; border-color: #90caf9; }
  
  #roleToggle #btnRoleAdviser {
    background: #fb8c00; /* solid orange */
    border-color: #ffcc80;
    color: #ffffff;
  }
  #roleToggle #btnRoleAdviser:hover { background: #ef6c00; border-color: #ffd180; }
  
  .hidden { display: none; }
  
  
  .input-group {
    position: relative;
    margin-bottom: 20px;
  }
  
  .input-group input {
    width: 100%;
    padding: 12px 40px 12px 52px; /* extra left space so text doesn't hit icon */
    border-radius: 25px;
    border: 2px solid #e0e0e0; /* subtle border */
    background: #ffffff; /* white textbox */
    color: #333333; 
    font-size: 16px;
    outline: none;
    box-sizing: border-box;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05) inset;
  }
  .input-group input:focus {
    border-color: #00c8ff;
    box-shadow: 0 0 0 3px rgba(0,200,255,0.2);
  }
  /* Adviser accent mode */
  .adviser-mode .input-group input { border-color: #ffca28; }
  .adviser-mode .input-group input:focus { border-color: #ffca28; box-shadow: 0 0 0 3px rgba(255,202,40,0.25); }
  .adviser-mode .login-btn { background-color: #fb8c00; }
  .adviser-mode .login-btn:hover { background-color: #ef6c00; }
  
  
  .input-group input::placeholder {
    color: #9e9e9e; /* gray placeholder */
    opacity: 0.9;
  }
  
  
  .input-group .icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #ffffff;
  }
  
  
  .login-btn {
    width: 70%;
    padding: 12px;
    border: none;
    border-radius: 25px;
    background-color: #28a745;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s ease;
  }
  
  .login-btn:hover {
    background-color: #218838;
  }
  
.login-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  width: 100%;
  display: block;
  pointer-events: none;
}

.login-bottom-copy {
  color: #f5f5f5;
  font-size: 11px;
  font-weight: 700;
}

.login-bottom-link {
  color: #f5f5f5;
  text-decoration: none;
  font-weight: 600;
  font-size: 11px;
}

.login-bottom-topline {
  pointer-events: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 6px 14px;
  background: #0f4a4d;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
}

.login-bottom-topline .login-bottom-link:hover {
  text-decoration: underline;
}

.login-bottom-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-bottom-topline .login-bottom-copy {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  pointer-events: none;
}

.footer-links-in-panel {
  margin-top: 12px;
  margin-bottom: 0;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.footer-links-in-panel a {
  color: #e0e0e0;
  text-decoration: underline;
  font-weight: 600;
  font-size: 13px;
}
  
  .error-message {
    color: red;
    margin-bottom: 15px;
    font-size: 14px;
  }
  
  .icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
  
  }
  
  .svg-icon {
    width: 100%;
    height: 100%;
    display: block;
  }
  
  .eye-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  
  .eye-icon.visible {
    opacity: 1;
    visibility: visible;
  }
  
  .eye-icon img {
    width: 20px;
    height: 20px;
  }
  
  /* Switch hint */
  .switch-hint { margin-top: 12px; color: #ffffff; font-weight: 600; }
  .switch-link { background: transparent; border: none; color: #ffeb3b; text-decoration: underline; cursor: pointer; font-weight: 800; }
  
  /* Decorative bubbles removed for cleaner aesthetic (markup deleted too). */
  

/* Error Modal */
.error-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.error-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.error-modal.hidden {
    display: none;
}

.error-modal-cloud {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    border-radius: 40px;
    padding: 30px 32px;
    width: min(90%, 380px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
    border: 4px dashed #ff9800;
    text-align: center;
    position: relative;
    animation: bounceIn 0.7s ease;
}

.cloud-face {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: 700;
    color: #ff7043;
    margin-bottom: 12px;
    font-size: 28px;
    letter-spacing: 2px;
}

.cloud-mouth {
    font-size: 20px;
    margin-top: -6px;
}

.error-text h3 {
    margin: 0;
    font-size: 22px;
    color: #ff7043;
}

.error-text p {
    margin: 10px 0 0;
    color: #5d4037;
    font-weight: 600;
}

.error-close-btn {
    margin-top: 18px;
    border: none;
    border-radius: 999px;
    padding: 10px 32px;
    font-size: 16px;
    font-weight: 700;
    background: #ff7043;
    color: #fff3e0;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(255, 112, 67, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.error-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(255, 112, 67, 0.45);
}

@keyframes bounceIn {
    0% { transform: scale(0.7); opacity: 0; }
    60% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); }
}

/* Forgot Password Modal - Cartoon Theme */
.forgot-password-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 182, 193, 0.4);
  backdrop-filter: blur(8px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.forgot-password-modal.show {
  opacity: 1;
  pointer-events: auto;
}

.forgot-password-modal.hidden {
  display: none;
}

.forgot-password-content {
  background: linear-gradient(135deg, #fffaf5 0%, #ffeef8 100%);
  border-radius: 30px;
  padding: 35px 40px;
  width: min(90%, 500px);
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 
    0 20px 60px rgba(255, 112, 153, 0.3),
    0 8px 25px rgba(116, 213, 255, 0.2),
    inset 0 2px 10px rgba(255, 255, 255, 0.8);
  border: 4px solid #ffd6eb;
  position: relative;
  animation: slideUpBounce 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-sizing: border-box;
}

@keyframes slideUpBounce {
  0% {
    transform: translateY(50px) scale(0.8);
    opacity: 0;
  }
  60% {
    transform: translateY(-10px) scale(1.05);
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.forgot-password-content::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 3px dashed rgba(255, 182, 193, 0.6);
  border-radius: 24px;
  pointer-events: none;
}

.forgot-password-content::after {
  content: "✨";
  position: absolute;
  top: -15px;
  right: 50px;
  font-size: 2em;
  animation: sparkle 2s ease-in-out infinite;
  z-index: 1;
}

.forgot-password-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 35px;
  height: 35px;
  border: none;
  background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%);
  color: white;
  font-size: 1.8em;
  font-weight: bold;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(255, 111, 145, 0.4);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  line-height: 1;
  padding: 0;
}

.forgot-password-close:hover {
  background: linear-gradient(135deg, #ff4d7a 0%, #ff6b9d 100%);
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 6px 20px rgba(255, 77, 122, 0.5);
}

.forgot-password-close:active {
  transform: rotate(90deg) scale(0.95);
}

@keyframes sparkle {
  0%, 100% {
    transform: rotate(0deg) scale(1);
    opacity: 1;
  }
  50% {
    transform: rotate(180deg) scale(1.2);
    opacity: 0.7;
  }
}

.forgot-password-header {
  text-align: center;
  margin-bottom: 25px;
}

.forgot-password-icon {
  font-size: 4em;
  margin-bottom: 10px;
  animation: shake 1.5s ease-in-out infinite;
  display: inline-block;
}

@keyframes shake {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-10deg);
  }
  75% {
    transform: rotate(10deg);
  }
}

.forgot-password-content h3 {
  margin: 0 0 8px 0;
  color: #ff6f91;
  font-size: 1.8em;
  font-weight: 700;
  font-family: "Baloo 2", "Poppins", sans-serif;
  text-shadow: 2px 2px 4px rgba(255, 111, 145, 0.2);
}

.forgot-password-subtitle {
  margin: 0;
  color: #666;
  font-size: 0.95em;
  font-weight: 500;
}

.forgot-form-group {
  margin-bottom: 20px;
}

.forgot-form-group label {
  display: block;
  margin-bottom: 8px;
  color: #5a5a5a;
  font-weight: 600;
  font-size: 0.95em;
}

.forgot-form-group input,
.forgot-form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #ffd6eb;
  border-radius: 15px;
  font-size: 1em;
  background: white;
  color: #333;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(255, 214, 235, 0.3);
  box-sizing: border-box;
}

.forgot-form-group input:focus,
.forgot-form-group select:focus {
  outline: none;
  border-color: #ff6f91;
  box-shadow: 0 4px 12px rgba(255, 111, 145, 0.3);
  transform: translateY(-2px);
}

.forgot-form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ff6f91' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.forgot-error-message,
.forgot-success-message {
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-weight: 600;
  text-align: center;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.forgot-error-message {
  background: #ffebee;
  color: #c62828;
  border: 2px solid #ffcdd2;
}

.forgot-success-message {
  background: #e8f5e9;
  color: #2e7d32;
  border: 2px solid #c8e6c9;
}

.forgot-password-actions {
  display: flex;
  gap: 12px;
  margin-top: 25px;
}

.btn-forgot-submit,
.btn-forgot-cancel {
  flex: 1;
  padding: 14px 24px;
  border: none;
  border-radius: 20px;
  font-size: 1em;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  font-family: "Baloo 2", "Poppins", sans-serif;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-forgot-submit {
  background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%);
  color: white;
  border: 3px solid #ff4d7a;
}

.btn-forgot-submit:hover {
  background: linear-gradient(135deg, #ff4d7a 0%, #ff6b9d 100%);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 30px rgba(255, 77, 122, 0.5);
}

.btn-forgot-cancel {
  background: linear-gradient(135deg, #74d5ff 0%, #a9e8ff 100%);
  color: #2c5f7c;
  border: 3px solid #4ab8e8;
}

.btn-forgot-cancel:hover {
  background: linear-gradient(135deg, #4ab8e8 0%, #74d5ff 100%);
  transform: translateY(-3px) scale(1.05);
  color: white;
  box-shadow: 0 10px 30px rgba(74, 184, 232, 0.4);
}

@media (max-width: 480px) {
  .login-bottom-nav {
    display: block;
  }

  .login-bottom-copy,
  .login-bottom-link {
    font-size: 11px;
  }

  .login-bottom-topline {
    justify-content: flex-end;
    gap: 10px;
    padding: 0 8px;
    min-height: 38px;
    flex-wrap: nowrap;
  }

  .login-bottom-topline .login-bottom-copy {
    position: static;
    transform: none;
    margin-right: auto;
    pointer-events: auto;
  }

  .forgot-password-content {
    padding: 25px 20px;
    width: 95%;
  }
  
  .forgot-password-icon {
    font-size: 3em;
  }
  
  .forgot-password-content h3 {
    font-size: 1.5em;
  }
  
  .forgot-password-actions {
    flex-direction: column;
  }
}
  
   