/* ===================================================================================
===============================  Login Page Styles ================================
=================================================================================== */

/* Basic layout styles for login pages */
.main-content {
  margin-left: 0;
  width: 100%;
  padding: 0;
}

.container-fluid {
  padding: 0;
  max-width: none;
}

/* Login page section styling */
#login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f4f4;
  padding: 20px 0;
  width: 100%;
  box-sizing: border-box;
}

/* Ensure the body doesn't interfere with login centering */
body.login-page {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

/* Override responsive.css fixed widths for login page */
@media only screen and (max-width: 767px) {
  #login-body .center {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }
  
  #login-body .container {
    max-width: 90%;
    margin: 0 auto;
  }
}

@media only screen and (max-width: 480px) {
  #login-body .center {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
  }
  
  #login-body .container {
    max-width: 95%;
    margin: 0 auto;
    padding: 30px;
  }
}

#login-body .container {
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 40px;
  margin: 0 auto;
  max-width: 500px;
  width: 100%;
  position: relative;
  left: auto;
  right: auto;
  transform: none;
  /* Override any Bootstrap container styles */
  padding-left: 40px;
  padding-right: 40px;
  box-sizing: border-box;
}

/* Login form container */
.center {
  margin: auto;
  width: 400px;
  border-radius: 10px;
}

.center h1 {
  text-align: center;
  font-family: WorkSans;
}

.center p {
  text-align: center;
  font-size: 16px;
  color: #4f4f4f;
}

.center img {
  display: flex;
  margin: auto;
  width: 200px;
}

/* Login logo styling */
.login-logo {
  text-align: center;
  margin: 20px 0;
}

.login-logo .panda-logo {
  max-width: 240px;
  height: auto;
  display: block;
  margin: 0 auto;
}

@media (max-width: 767.98px) {
  .login-logo .panda-logo {
    max-width: 200px;
  }
}

@media (max-width: 480px) {
  .login-logo .panda-logo {
    max-width: 180px;
  }
}

.center form {
  box-sizing: border-box;
}

/* Form field styling */
form .txt_field {
  position: relative;
  margin: 20px 0;
}

.txt_field input {
  width: 100%;
  padding: 14px 12px;
  height: auto;
  font-size: 16px;
  border: 1px solid #c4c7cc;
  background: #fff;
  outline: none;
  z-index: 2;
  position: relative;
  border-radius: 8px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.txt_field input:hover {
  border-color: #9ea3a9;
}

.txt_field input:focus {
  border-color: #1976d2;
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.12);
}

.txt_field input::placeholder {
  color: #9aa1a9;
  opacity: 1;
}

/* Simple label style */
.txt_field label {
  position: static;
  display: block;
  margin-bottom: 6px;
  color: #6b7280;
  font-size: 14px;
}

/* Hide label only when the field is empty (placeholder visible); show when it has text */
.txt_field input:placeholder-shown ~ label {
  display: none;
}

.txt_field span::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 0;
  width: 0%;
  height: 2px;
  background: #2691d9;
  transition: .5s;
}


/* Password field specific styling */
.pass {
  margin: -5px 0 20px 5px;
  color: #a6a6a6;
  cursor: pointer;
}

.pass:hover {
  text-decoration: underline;
}

/* Submit button styling */
input[type="submit"] {
  padding: 8px 35px;
  display: flex;
  margin: auto;
  border-radius: 5px;
  background: #2691d9;
  color: #fff;
  font-weight: 700;
  border: none;
  margin-top: 25px;
  transition: .4s;
}

/* Signup link styling */
.signup_link {
  margin: 30px 0;
  text-align: center;
  font-size: 16px;
  color: #666666;
}

.signup_link a {
  color: #2691d9;
  text-decoration: none;
}

.signup_link a:hover {
  text-decoration: underline;
}

/* Error message styling for join page */
.error {
  text-align: center;
  color: #dc3545;
  margin: 10px 0;
  font-size: 14px;
  font-weight: 500;
}

/* Error state support (apply .error on txt_field wrapper if needed) */
.txt_field.error input {
  border-color: #d32f2f;
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.12);
}
.txt_field.error label {
  color: #d32f2f;
}

/* Class signup details styling */
.class-signup-details {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
}

.class-signup-details li {
  margin: 8px 0;
  font-size: 14px;
}

/* Signup status styling */
.signup-status {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  margin: 20px 0;
  background: #f8f9fa;
  border-radius: 8px;
}

.signup-status i {
  font-size: 24px;
  margin-right: 10px;
}

.signup-status i.fa-times-circle {
  color: #dc3545;
}

.signup-status i.fa-check-circle {
  color: #28a745;
}

.signup-status i.fa-clock {
  color: #ffc107;
}

.signup-status p {
  margin: 0;
  font-size: 14px;
}

/* Login page tab styles - remove grey background and keep white */
#loginTabs .nav-link {
  background-color: #ffffff;
  border: 1px solid #dee2e6;
  color: #495057;
}

#loginTabs .nav-link.active {
  background-color: #ffffff;
  border-color: #2691d9 #2691d9 #ffffff;
  color: #2691d9;
}

#loginTabs .nav-link:hover {
  background-color: #ffffff;
  border-color: #2691d9;
  color: #2691d9;
}

/* Fix spacing issue with password label animation */
.txt_field:nth-child(2) {
  margin-top: 50px;
}

/* Add spacing between username and password fields */
.txt_field + .txt_field {
  margin-top: 50px;
}

/* Ensure labels don't overlap when animated */
.txt_field label {
  z-index: 1;
  background: #f4f4f4;
  padding: 0 5px;
}

/* Enter Quiz page styling */
#enterquiz {
  margin-bottom: 100px;
}

#enterquiz-content p {
  margin: 40px 0 20px 0;
}

#enterquiz-content h2 {
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  margin: 20px 0;
}

#enterquiz-content select {
  width: 80%;
  display: flex;
  margin: auto;
  margin-bottom: 40px;
  border: 1px solid #2691d9;
  padding: 10px 20px;
  border-radius: 5px;
  background: #f6f4f4;
  cursor: pointer;
}

#enterquiz-content select:focus {
  outline: none;
  border: 1px solid #2691d9;
}

#enterquiz-content input[type="submit"] {
  padding: 10px 40px;
  width: unset;
  display: flex;
  margin: auto;
  border-radius: 5px;
  background: #2691d9;
  color: #fff;
  font-weight: 700;
  border: none;
  transition: .4s;
}

#enterquiz-content input[type="submit"]:hover {
  background: #1a6aa8;
}

/* Responsive adjustments for login page */
@media (max-width: 767.98px) {
  .center {
    width: 400px;
  }
  
  .center img {
    width: 150px;
  }
  
  #login-body .container {
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  .center {
    width: 340px;
  }
  
  #login-body .container {
    padding: 20px 15px;
  }
  
  .txt_field {
    margin: 20px 0;
  }
  
  input[type="submit"] {
    padding: 8px 25px;
  }
}

/* Mobile snug layout refinements */
@media (max-width: 767.98px) {
  #login-body {
    padding: 10px 0;
  }
  #login-body .container {
    max-width: 100%;
    padding: 24px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  }
  .center {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 480px) {
  html, body {
    height: 100%;
  }
  #login-body {
    min-height: 100svh;
    padding: 0;
  }
  #login-body .container {
    max-width: 100%;
    width: 100%;
    padding: 16px;
    border-radius: 0;
    box-shadow: none;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .center {
    width: 100%;
    max-width: none;
    margin: 0 auto;
  }
  .login-logo { margin: 10px 0; }
  .login-logo .panda-logo { max-width: 160px; }
  .txt_field { margin: 16px 0; }
  input[type="submit"] { width: 100%; max-width: 320px; }
  .signup_link { margin: 16px 0; }
  #loginTabs .nav-link { padding: 8px 12px; font-size: 15px; }
} 