/* General Body Styles */
body {
  font-family: "Inter", sans-serif;
  background: linear-gradient(120deg, #fffbe5 0%, #f7d06e 90%);
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px; /* Add some padding for smaller screen edges */
  box-sizing: border-box;
}

/* Main Container for the Login Page */
.login-container {
  display: flex;
  width: 100%;
  max-width: 1200px;
  min-height: 80vh;
  max-height: 700px;
  background-color: #ffffff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  border-radius: 24px;
  overflow: hidden;
}

.left-panel {
  flex: 1;
  background-image: url("../assets/images/login.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 200px; /* Ensures panel is visible even if flex calculations are small */
}

/* Right Panel with the Login Form */
.right-panel {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
  background-color: #ffffff;
  overflow-y: auto; /* Allows form to scroll if content is too long for the viewport */
  position: relative; /* ADD THIS to position the back button */
}
.login-form-wrapper {
  width: 100%;
  max-width: 380px;
}

/* Logo Styling */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.logo img {
  height: 40px;
  width: auto;
}

/* Headings */
.right-panel h2 {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.right-panel p {
  font-size: 16px;
  color: #666666;
  margin-top: 0;
  margin-bottom: 24px;
}

/* Form Styling */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  padding: 14px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s, box-shadow 0.3s;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: #FFD700;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
}

/* Form Options (Remember me & Forgot password) */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  font-size: 14px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.forgot-password {
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 500;
}

.forgot-password:hover {
  text-decoration: underline;
}

/* Login Button */
.btn-login {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #FFD700 0%, #B8860B 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  margin-bottom: 32px;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

/* Responsive Design */
/* --- For TABLETS and PHONES (<= 1024px wide) --- */
@media (max-width: 1024px) {
  body {
    padding: 20px;
    box-sizing: border-box;
    align-items: center;
  }
  .login-container {
    flex-direction: column;
    min-height: auto;
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  }
  
  .left-panel {
    flex: 0 0 200px;
  }
  
  .right-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 30px; 
    overflow-y: visible;
  }
  .login-form-wrapper {
    margin: 0 auto;
  }
  .btn-login {
    margin-bottom: 0;
  }
}





.login-container {
  position: relative;
}

/* --- Base styles for go back button for DESKTOP --- */
.btn-back-container {
  position: absolute;
  top: 30px;
  left: 30px;
  z-index: 10;
  
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s ease;
  
  background: linear-gradient(135deg, #FFD700 0%, #B8860B 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-back-container:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  filter: brightness(1.1);
}

.btn-back-container svg {
  width: 20px;
  height: 20px;
  stroke: #ffffff;
}

/* --- Overrides for MOBILE (<= 900px) --- */
@media (max-width: 900px) {
  .btn-back-container {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
    justify-content: center; /* Center the icon */
    top: 20px;
    left: 20px;
  }

  /* Hide the "Go back" text on mobile */
  .btn-back-container .btn-back-text {
    display: none;
  }
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  position: relative;
}

/* Hides the default browser checkbox */
.remember-me input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
  outline: none;
}

/* Creates the custom box shape that is always visible */
.remember-me input[type="checkbox"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  background-color: #ffffff;
  transition: all 0.2s ease;
}

/* Styles the box WHEN it is checked */
.remember-me input[type="checkbox"]:checked::before {
  border-color: #B8860B;
  
  /* This shorthand property is more reliable for layering */
  background:
    /* Layer 2: The SVG icon, centered and sized */
    url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='20 6 9 17 4 12'%3e%3c/polyline%3e%3c/svg%3e") center / 10px no-repeat,
    
    /* Layer 1: The color gradient */
    linear-gradient(135deg, #FFD700 0%, #B8860B 100%);
}

/* Ensures the old CSS-drawn checkmark does not appear */
.remember-me input[type="checkbox"]::after {
  content: none;
}

/* --- For TABLETS and PHONES (<= 1024px wide) --- */
@media (max-width: 1024px) {
  body {
    padding: 20px;
    box-sizing: border-box;
    align-items: center;
  }
  .login-container {
    flex-direction: column;
    min-height: auto;
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  }
  .left-panel {
    flex: 0 0 200px;
  }
  .right-panel {
    flex: 1;
    display: flex;
    justify-content: center;
    /* This is the key fix: aligns the form to the top */
    align-items: flex-start;
    padding: 30px; 
    overflow-y: visible;
  }
  .login-form-wrapper {
    margin: 0 auto;
  }
  .btn-login {
    margin-bottom: 0;
  }
}

/* --- Specific overrides for SMALL, SHORT PHONES (e.g., iPhone SE) --- */
@media (max-height: 700px) and (max-width: 480px) {
  .left-panel {
    /* Hides the image to save space */
    display: none;
  }

  .right-panel {
    /* Increases top padding to push form down below the back button */
    padding-top: 80px;
  }
}

@media (max-width: 380px) {
  /* Let the outer card grow and stop clipping the bottom */
  .login-container {
    max-height: none !important;   /* remove 700px cap */
    overflow: visible !important;  /* don't clip the button */
    border-radius: 24px;           /* keep your rounded look */
  }

  /* Give the inner panel breathing room at the bottom */
  .right-panel {
    padding-bottom: max(20px, env(safe-area-inset-bottom));
  }

  /* Make the button clearly visible above the curve */
  .btn-login {
    margin-bottom: 16px !important;  /* earlier CSS removed this on mobile */
  }

  /* Make the Remember/Forgot row wrap with spacing */
  .form-options {
    flex-wrap: wrap;
    gap: 10px 16px;                 /* row gap, then column gap */
  }
  .form-options .forgot-password {
    margin-left: auto;              /* push it away from the checkbox text */
  }

  /* Avoid any intrinsic width limits that make the form feel cramped */
  .login-form-wrapper { max-width: 100%; }
}

/* Extra safety for ultra-narrow screens (≤ 350px logical width) */
@media (max-width: 350px) {
  .right-panel { padding-left: 16px; padding-right: 16px; }
  .btn-login   { font-size: 15px; padding: 14px; }
}
/*# sourceMappingURL=login.css.map */

/* Alert Base Styles */
.alert {
    position: relative;
    padding: 12px 20px;
    margin-bottom: 16px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.alert i {
    margin-right: 8px;
    font-size: 16px;
}

/* Success Alert */
.alert-success {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}

.alert-success i {
    color: #198754;
}

/* Error/Danger Alert */
.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-danger i {
    color: #dc3545;
}

/* Info Alert */
.alert-info {
    color: #055160;
    background-color: #cff4fc;
    border-color: #b6effb;
}

.alert-info i {
    color: #0dcaf0;
}

/* Alert Animation */
.alert {
    animation: slideIn 0.3s ease-out;
}

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

/* Alert Close Button (Optional) */
.alert .close {
    position: absolute;
    top: 12px;
    right: 15px;
    background: none;
    border: none;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0.7;
}

.alert .close:hover {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .alert {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .alert i {
        font-size: 14px;
        margin-right: 6px;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    .alert-success {
        color: #d1e7dd;
        background-color: #0f5132;
        border-color: #198754;
    }
    
    .alert-danger {
        color: #f8d7da;
        background-color: #721c24;
        border-color: #dc3545;
    }
    
    .alert-info {
        color: #cff4fc;
        background-color: #055160;
        border-color: #0dcaf0;
    }
}

/* Hover Effects */
.alert:hover {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.2s ease;
}

/* Alert with Icons Positioning */
.alert {
    display: flex;
    align-items: flex-start;
}

.alert i {
    flex-shrink: 0;
    margin-top: 1px;
}