/* ==========================================================================
   Firki Signup Page Styles
   Applies ONLY to login/signup.php
   PROTEEK JANA
   15/07/2026
   EDZLMS
   ========================================================================== */

/* Make First Name & Last Name appear side-by-side */

:root {
  --teal: #00b3c8;
  --teal-dark: #00919f;
  --mint: #5cc09f;
  --charcoal: #30302f;
  --cream: #f2f1e2;
  --yellow: #ffd060;
  --coral: #f05c4e;
  --white: #ffffff;
  --login-border: #e3e1ce;
  --shadow: 0 8px 24px rgba(48, 48, 47, 0.08);
}

body.pagelayout-login .firki-signup-page #fitem_id_firstname,
body.pagelayout-login .firki-signup-page #fitem_id_lastname {
  display: inline-flex;
  flex-direction: column;
  width: calc(50% - 8px);
  vertical-align: top;
}
body.pagelayout-login input,
body.pagelayout-login input[type="password"] {
  color: var(--firki-brand-black);
}
body.pagelayout-login .firki-signup-page #fitem_id_firstname {
  margin-right: 16px;
}

body.pagelayout-login .firki-signup-page #fitem_id_firstname .felement,
body.pagelayout-login .firki-signup-page #fitem_id_lastname .felement {
  width: 100%;
}

body.pagelayout-login .firki-signup-page #fitem_id_firstname input,
body.pagelayout-login .firki-signup-page #fitem_id_lastname input {
  width: 100%;
  box-sizing: border-box;
}

body.pagelayout-login .fitem .text-danger,
body.pagelayout-login .fitem .asterisk {
  color: var(--bs-danger) !important;
  font-weight: 700;
}

body.pagelayout-login input::placeholder {
  opacity: 1;
}

body.pagelayout-login .fitem {
  margin-bottom: 18px;
}

body.pagelayout-login .firki-signup-page #fitem_id_firstname label,
body.pagelayout-login .firki-signup-page #fitem_id_lastname label {
  white-space: nowrap;
}

body.pagelayout-login .fitem .col-form-label,
body.pagelayout-login .fitem label {
  font-size: 15px;
  font-weight: 900;
  margin-bottom: 3px;
  padding-bottom: 0;
  font-family: "Source Sans 3" sans-serif;
}

body.pagelayout-login .fitem input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  box-sizing: border-box;
  border: 2px solid var(--login-border);
  border-radius: 8px;
}

/* Password checklist */

body.pagelayout-login .firki-password-checklist {
  margin-top: 10px;
}

body.pagelayout-login .firki-check {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: var(--firki-brand-black);
  margin-bottom: 8px;
}

body.pagelayout-login .firki-check .circle {
  width: 14px;
  height: 14px;
  border: 2px solid var(--login-border);
  border-radius: 50%;
  margin-right: 8px;
}

body.pagelayout-login .firki-check.valid .circle {
  background: var(--bs-success);
  border-color: var(--bs-success);
}

body.pagelayout-login .firki-check.valid .circle::after {
  content: "✓";
  display: block;
  text-align: center;
  color: var(--firki-brand-white);
  font-size: 10px;
  line-height: 10px;
}

body.pagelayout-login .firki-password-wrapper {
  margin-top: 8px;
}

body.pagelayout-login .firki-password-rule {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--firki-brand-black);
}

body.pagelayout-login .rule-icon {
  width: 14px;
  height: 14px;
  border: 2px solid var(--login-border);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}

body.pagelayout-login .firki-password-rule.valid .rule-icon {
  border-color: var(--bs-success);
  background: var(--bs-success);
}

body.pagelayout-login .firki-password-rule.valid .rule-icon::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--firki-brand-white);
  font-size: 9px;
  font-weight: bold;
}

body.pagelayout-login .firki-password-rule span:last-child {
  font-size: 13.5px;
  color: var(--firki-brand-black);
}

body.pagelayout-login .firki-show-password {
  position: absolute;
  right: 25px;
  top: 13px;
  border: none;
  background: none;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  color: var(--firki-brand-black);
}

/* Hide Moodle required icons */

body.pagelayout-login .form-required-icon,
body.pagelayout-login .req,
body.pagelayout-login .icon.fa-exclamation-circle,
body.pagelayout-login .icon.fa-circle-exclamation {
  display: none !important;
}

/* Hide Required legend */

body.pagelayout-login .fdescription.required {
  display: none !important;
}

body.pagelayout-login .firki-required {
  color: var(--bs-danger);
  font-weight: 700;
  margin-left: 3px;
  cursor: help;
}

/* Logo */

body.pagelayout-login .firki-logo-panel {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0 auto 18px;
  padding: 0;
}

body.pagelayout-login .firki-logo-panel img {
  width: auto;
  max-width: 220px;
  height: auto;
  display: block;
}

/* Progress */

body.pagelayout-login .firki-progress-wrap {
  margin-top: 0;
  margin-bottom: 22px;
}

body.pagelayout-login .firki-progress-bars {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

body.pagelayout-login .firki-progress-active {
  flex: 1;
  height: 6px;
  background: var(--firki-brand-color);
  border-radius: 999px;
}

body.pagelayout-login .firki-progress-inactive {
  flex: 1;
  height: 6px;
  background: var(--login-border);
  border-radius: 999px;
}

/* Mihir input focus color 17 JULY 2026*/

body.pagelayout-login input:focus,
#page-login-index input:focus {
  outline: none;
  border-color: var(--teal);
}
body.pagelayout-login .firki-description {
  font-size: 15.5px;
  line-height: 1.45;
}
body.pagelayout-login #id_submitbutton:hover {
  background: var(--teal-dark) !important;
}

body.pagelayout-login input::placeholder,
#page-login-index input::placeholder {
  color: #8a897d !important;
  font-size: 13px;
  font-weight: 700;
}
body.pagelayout-login .firki-terms {
  text-align: center;
  font-size: 12px;
  color: #a5a394;
  margin-top: 18px;
}

/* Create Account button */

/* ==========================================================================
   Create Account Button
   ========================================================================== */

body.pagelayout-login .firki-create-btn-wrap {
  width: 100%;
  margin-top: 22px;
}

body.pagelayout-login #id_submitbutton {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 56px;
  min-height: 56px;

  border-radius: 0.75rem;

  background: var(--firki-brand-color) !important;
  border: 1px solid var(--firki-brand-color) !important;
  color: var(--firki-brand-white) !important;

  font-size: 18px;
  font-weight: 700;

  box-shadow: none;
  transition: 0.2s ease;
}
/* Heading */

body.pagelayout-login .login-container .firki-heading {
  color: var(--firki-brand-black);
  text-align: left;
}
.firki-back-login {
  margin-top: 16px;
  text-align: center;
}

.firki-back-login a {
  color: var(--firki-brand-pureblack);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: 0.2s ease;
}

.firki-back-login a:hover {
  text-decoration: underline;
  opacity: 0.85;
}
#spinner-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

#spinner-wrapper .spinner-border {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  border-width: 0.18em;
}
body.pagelayout-login .firki-step {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--firki-brand-black) !important;
}
#page-login-signup #fitem_id_submitbutton {
  padding-right: 0em !important;
} /* ==========================================================================
   Mobile View
   Stack First Name & Last Name
   ========================================================================== */

@media (max-width: 767px) {
  body.pagelayout-login .firki-signup-page #fitem_id_firstname,
  body.pagelayout-login .firki-signup-page #fitem_id_lastname {
    display: flex;
    width: 100%;
    margin-right: 0;
  }

  body.pagelayout-login .firki-signup-page #fitem_id_firstname {
    margin-bottom: 18px;
  }
}
