/* =========================================================
   Login / Sign-up page (home.php).
   Loaded after main.css so it restyles the login form + card.
   Purple theme, modern card, floating-icon fields.
   ========================================================= */

.panel_login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 14px 44px;
  background: radial-gradient(1100px 560px at 50% -8%, #6d29bd 0%, #511495 52%, #401075 100%);
}
.panel_login .container--fluid { width: 100%; margin: 0 auto !important; }
.panel_login .container--fluid > .row { margin: 0; }

/* Logos above the card */
.panel_login .col-lg-5,
.panel_login .col-md-6 { max-width: 500px; }
.panel_login .col-lg-5 > .row { justify-content: center; }
/* transparent QuizStar logo, sized so it blends into the gradient */
.auth-logo { width: 200px; height: auto; }

/* ---- White card ---- */
.login-card {
  background: #fff !important;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,.30);
  overflow: hidden;
  padding: 0 0 28px !important;
  margin: 6px 0 0 !important;
}
/* neutralise the Bootstrap column padding so the tab bar is truly edge-to-edge */
.login-card > .col-12 { padding: 0 !important; }
/* one consistent horizontal inset for the actual content of both tabs */
.login-card #pills-tabContent .col-12 { padding-left: 26px !important; padding-right: 26px !important; }

/* ---- Tabs (full-width underline) ---- */
.selectTabs {
  border-bottom: 1px solid #ececf2;
  margin: 0 0 18px !important;
  padding: 0;
}
.selectTabs .nav-link {
  color: #9a93ad;
  font-weight: 700;
  letter-spacing: .6px;
  text-align: center;
  padding: 16px 0;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  transition: color .15s ease, border-color .15s ease;
}
.selectTabs .nav-link:hover { color: #6a4aa0; }
.selectTabs .nav-link.active,
.selectTabs .nav-link.show {
  color: #511495;
  background: transparent;
  border-bottom-color: #511495;
}

/* ---- Heading ---- */
.login_text_page h1 { color: #1f1533; font-weight: 800; font-size: 26px; margin: 8px 0 2px; text-align: center; }
.login_text_page p { color: #8a82a5; text-align: center; margin-bottom: 20px; font-size: 14px; }

/* ---- Fields ---- */
.login_form_wrpa label { color: #4a4560; font-weight: 600; font-size: 13px; margin-bottom: 6px; display: block; }
.login_form_wrpa .form-group { margin-bottom: 16px; }

.login_form_wrpa .input-group {
  display: flex;
  align-items: center;
  border: 1px solid #e6e2f0;
  border-radius: 12px;
  background: #f7f6fc;
  overflow: hidden;
  margin-bottom: 2px !important;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.login_form_wrpa .input-group:focus-within {
  border-color: #511495;
  box-shadow: 0 0 0 3px rgba(81,20,149,.12);
  background: #fff;
}
.login_form_wrpa .input-group-prepend { margin: 0; }
.login_form_wrpa .input-group-text { background: transparent; border: 0; padding: 0 8px 0 14px; }
.login_form_wrpa .input-group-text img { width: 18px; height: auto; }
.login_form_wrpa .check_ipe { display: none; }   /* drop the static green check */

.login_form_wrpa .form-control {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 13px 12px !important;
  font-size: 15px;
  color: #2d2d3a;
  height: auto;
  border-radius: 0 !important;
}
.login_form_wrpa .field-icon.toggle-password {
  position: static;
  float: none;
  left: auto;
  margin: 0;
  padding: 0 14px;
  color: #8a82a5;
  cursor: pointer;
}

/* ---- Remember me / forgot ---- */
.login_form_wrpa .d-flex.justify-content-between { align-items: center; margin-bottom: 8px; }
.fl_cl_mns .custom-control-label { color: #6b6580; font-size: 14px; }
.fl_cl_mns .custom-control-input:checked ~ .custom-control-label::before { background: #511495; border-color: #511495; }
.forget_psw a { color: #511495; font-weight: 600; font-size: 14px; }

/* ---- Primary button (login + sign up) ---- */
.panel_login .byn_s { margin-top: 10px; }
.panel_login .byn_s .btn {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 14px;
  font-weight: 700;
  font-size: 16px;
  color: #fff !important;
  background: linear-gradient(135deg, #7a34c9 0%, #511495 100%);
  box-shadow: 0 8px 20px rgba(81,20,149,.35);
  transition: transform .12s ease, box-shadow .12s ease;
}
.panel_login .byn_s .btn:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(81,20,149,.45); }

/* ---- Create account ---- */
.text__create { text-align: center; margin-top: 18px; }
.text__create p { color: #8a82a5; font-size: 14px; margin: 0; }
.text__create a { color: #511495; font-weight: 700; }

/* ---- Responsive ---- */
@media (max-width: 575px) {
  .panel_login { padding: 20px 10px 34px; }
  .login-card { padding: 0 0 22px !important; border-radius: 14px; }
  .login-card #pills-tabContent .col-12 { padding-left: 16px !important; padding-right: 16px !important; }
  .selectTabs { margin: 0 0 14px !important; }
  .selectTabs .nav-link { padding: 14px 0; font-size: 15px; }
  .login_text_page h1 { font-size: 23px; }
  .auth-logo { width: 170px; }
}
