/*
 * login.css
 * Styles for the Login page (/login/).
 * Converted from: frontend-nextjs/src/assets/scss/components/_auth-page.scss
 *                 frontend-nextjs/src/assets/scss/components/_form.scss
 * Generated by Claude Code Phase 2B — Developer review required
 *
 * Variables resolved:
 *   $primary        → #e78125
 *   $secondary      → #19263a
 *   $white          → #ffffff
 *   $black          → #000000
 *   $danger         → #f74641
 *   $color_raven    → #7b7c7e
 *   $color_gray     → #838383
 *   $color_silver2  → #cccccc
 *
 * Load order (functions.php): bootstrap → main.css → login.css
 */

/* =========================================
   PAGE-WRAPPER RESET FOR AUTH PAGES
   #gp-page-wrapper is a flex column (main.css). Auth pages have no header/footer,
   so collapse it to a plain block so .auth-page-wrap fills the viewport cleanly.
========================================= */

body.page-id-593468 #gp-page-wrapper,
body.page-id-593469 #gp-page-wrapper,
body.page-template-page-forgot-password-php #gp-page-wrapper,
body.page-template-page-reset-password-php #gp-page-wrapper {
  min-height: unset;
  display: block;
  overflow: hidden;
}

/* =========================================
   AUTH PAGE WRAPPER
   Source: .auth-page-wrap in _auth-page.scss
========================================= */

.auth-page-wrap {
  height: 100vh;
  display: flex;
  scrollbar-color: #19263a #e5e5e5;
  scrollbar-width: thin;
}

@media (max-width: 767px) {
  .auth-page-wrap {
    height: auto;
    flex-wrap: wrap;
  }
}

.auth-page-wrap ::-webkit-scrollbar,
.auth-page-wrap::-webkit-scrollbar {
  width: 7px;
  height: 7px;
  border-radius: 4px;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
}

.auth-page-wrap ::-webkit-scrollbar-track,
.auth-page-wrap::-webkit-scrollbar-track {
  background: rgba(123, 124, 126, 0.2);
  border-radius: 4px;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
}

.auth-page-wrap ::-webkit-scrollbar-thumb,
.auth-page-wrap::-webkit-scrollbar-thumb {
  background: #19263a;
  border-radius: 4px;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
}

.auth-page-wrap ::-webkit-scrollbar-thumb:window-inactive,
.auth-page-wrap::-webkit-scrollbar-thumb:window-inactive {
  background: #19263a;
}

/* ── Left panel ── */
.auth-page-wrap .auth-page-left {
  width: 493px;
  flex-shrink: 0;
  overflow: auto;
  background: linear-gradient(158.87deg, #26426c 0%, #1e3455 100.32%);
}

@media (max-width: 991px) {
  .auth-page-wrap .auth-page-left {
    width: 340px;
  }
}

@media (max-width: 767px) {
  .auth-page-wrap .auth-page-left {
    width: 100%;
  }
}

/* ── Right panel ── */
.auth-page-wrap .auth-page-right {
  width: 100%;
  padding: 56px 40px;
  overflow: auto;
}

@media (max-width: 767px) {
  .auth-page-wrap .auth-page-right {
    padding: 50px 20px;
  }
}

.auth-page-wrap .auth-page-right .login-page-wrap {
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
}

.auth-page-wrap .auth-page-right .auth-title-wrap {
  position: relative;
}

.auth-page-wrap .auth-page-right .auth-title-wrap .back-btn {
  position: absolute;
  left: -40px;
  top: 4px;
}

@media (max-width: 767px) {
  .auth-page-wrap .auth-page-right .auth-title-wrap .back-btn {
    position: relative;
    left: 0;
    top: 0;
    padding-bottom: 20px;
  }
}

.auth-page-wrap .auth-page-right .auth-title {
  padding-bottom: 30px;
      font-size: 28px;
}

/* ── Social login list (kept for future use; currently commented out in React) ── */
.auth-page-wrap .auth-social-login-list {
  padding-bottom: 30px;
}

.auth-page-wrap .auth-social-login-list ul {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-page-wrap .auth-social-login-list .auth-social-login-btn {
  background: transparent;
  border: 0;
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 500;
  color: #353535;
  transition: all 0.3s ease-in-out;
}

@media (max-width: 767px) {
  .auth-page-wrap .auth-social-login-list .auth-social-login-btn {
    font-size: 14px;
  }
}

.auth-page-wrap .auth-social-login-list .auth-social-login-btn:hover {
  color: #e78125;
}

.auth-page-wrap .auth-social-login-list .auth-social-login-btn .icon {
  margin-right: 12px;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .auth-page-wrap .auth-social-login-list .auth-social-login-btn .icon {
    margin-right: 8px;
  }
}

/* =========================================
   LOGIN SIDEBAR
   Source: .login-sidebar in _auth-page.scss
========================================= */

.login-sidebar {
  min-height: 100%;
  padding: 94px 53px 50px 57px;
  position: relative;
}

@media (max-width: 991px) {
  .login-sidebar {
    padding: 90px 20px 50px;
  }
}

@media (max-width: 767px) {
  .login-sidebar {
    padding: 50px 20px;
  }
}

/* decorative large logo watermark bottom-right */
.login-sidebar::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 287px;
  height: 327px;
  background: url("../images/logo-icon-large.png") no-repeat;
  background-position: 15px 15px;
}

@media (max-width: 991px) {
  .login-sidebar::after {
    width: 187px;
    height: 227px;
    background-size: contain;
  }
}

.login-sidebar .login-logo {
  padding-bottom: 27px;
}

.login-sidebar .login-logo img {
  display: block;
}

.login-sidebar .tag-line {
  font-size: 32px;
  line-height: 140%;
  font-weight: 600;
  color: #ffffff;
  font-family: "Inter";
}

@media (max-width: 991px) {
  .login-sidebar .tag-line {
    font-size: 24px;
  }
}

@media (max-width: 767px) {
  .login-sidebar .tag-line {
    font-size: 20px;
    max-width: 260px;
  }
}

/* =========================================
   FORM STYLES
   Source: .form-wrap in _form.scss
   (form-group, form-label, form-control, input-icon-field,
    form-error, forgot-link, sign-up-link, form-footer, or-line)
   These are login-page-scoped — shared form base is in main.css/.form-control:focus
========================================= */

.form-wrap .form-group {
  padding-bottom: 18px;
}

.form-wrap .form-label {
  display: block;
  font-size: 12px;
  line-height: 1.2;
  color: #4d4d4d;
  margin-bottom: 8px;
}

.form-wrap .form-label.label-lg {
  font-size: 14px;
  color: #19263a;
  margin-bottom: 6px;
}

.form-wrap .form-label.fs-16 {
  font-size: 16px;
}

.form-wrap .form-label .option {
  font-size: 12px;
  color: #838383;
}

.form-wrap .form-control {
  height: 45px;
  font-size: 15px;
  line-height: 1.3;
  color: #19263a;
}

.form-wrap .form-control:focus {
  box-shadow: none;
}

/* password field — eye toggle */
.form-wrap .input-icon-field {
  position: relative;
}

.form-wrap .input-icon-field .form-control {
  padding-right: 55px;
}

.form-wrap .input-icon-field .input-icon {
  position: absolute;
  right: 0;
  top: 0;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cccccc;
  font-size: 20px;
}

.form-wrap .input-icon-field .input-icon button {
  width: 45px;
  height: 45px;
  background: transparent;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cccccc;
  font-size: 20px;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}

.form-wrap .input-icon-field .input-icon button:hover {
  color: #19263a;
}

/* validation errors */
.form-wrap .form-error {
  font-size: 12px;
  font-weight: 500;
  color: #f74641;
  padding-top: 6px;
}

/* forgot password link */
.form-wrap .forgot-link {
  font-size: 12px;
  color: #838383;
  padding-top: 10px;
}

.form-wrap .forgot-link a {
  color: #838383;
  transition: all 0.3s ease-in-out;
}

.form-wrap .forgot-link a:hover {
  color: #e78125;
}

/* form footer: submit + sign-up link */
.form-wrap .form-footer {
  padding-top: 18px;
}

.form-wrap .sign-up-link {
  font-size: 14px;
  color: #000000;
  text-align: center;
  padding-top: 14px;
}

.form-wrap .sign-up-link a,
.form-wrap .sign-up-link button {
  border: 0;
  background: transparent;
  color: #e78125;
  font-weight: 600;
}

/* or-line divider (kept; currently commented out in React) */
.or-line {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

.or-line .line {
  height: 1px;
  width: 100%;
  background: #000000;
  opacity: 0.2;
}

.or-line .or {
  font-size: 12px;
  line-height: 1;
  color: #4d4d4d;
  margin: 0 30px;
}

/* =========================================
   SUBMIT BUTTON SPINNER
   Source: ClipLoader from react-spinners (replaced with CSS spin animation)
========================================= */

@keyframes gp-spin {
  to { transform: rotate(360deg); }
}

.gp-spin {
  animation: gp-spin 0.75s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

.gp-login-general-error {
  text-align: center;
}
