﻿@font-face {
  font-family: AldaRegular; 
  src: url("fonts-knowbility/Alda OT CEV Regular.otf") format("opentype"); 
} 
body{
  font-family: AldaRegular;
}

/* =========================================================
   Knowbility Login Page â€“ Modern Redesign
   ========================================================= */

.Login-Page-SecCH .card,
.Login-Page-SecCH .kb-login-card {
  width: 100% !important;
  max-width: 480px !important;
  margin: 0 auto;
  border: 0 !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 40px rgba(109, 48, 117, 0.15), 0 2px 6px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  background: #ffffff;
}

#page-local-sitepages-login .login-layout-right-content {
  max-width: none !important;
  width: 100% !important;
}

#page-local-sitepages-login .Login-Page-SecCH {
  width: 100% !important;
}

#page-local-sitepages-login .Login-Page-SecCH > div {
  flex: 0 0 100% !important;
  max-width: 100% !important;
  width: 100% !important;
  min-width: 100% !important;
}

#page-local-sitepages-login .Login-Page-SecCH form.mform,
#page-local-sitepages-login .Login-Page-SecCH .login-container {
  width: 100% !important;
}

/* Header */
.kb-login-header {
  background: #ffffff !important;
  border-bottom: 0 !important;
  padding: 2rem 1.5rem 1rem !important;
}
.kb-login-logo {
  max-height: 64px;
  margin-bottom: 0.75rem;
}
.kb-login-title {
  color: #6d3075;
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0.5rem 0 0.25rem;
  width: auto;
}
.kb-login-subtitle {
  color: #6b6772;
  font-size: 0.95rem;
  margin: 0;
}

/* Card body */
.Login-Page-SecCH .card-body,
.Card-Sec-Ch {
  padding: 1.75rem 2rem 1.5rem !important;
}

/* Hide Moodle's default labels (col-md-3) so we can use our own. */
.Login-Page-SecCH .col-md-3 {
  display: none !important;
}
.Login-Page-SecCH .col-md-9 {
  max-width: 100% !important;
  flex: 0 0 100% !important;
  padding: 0 !important;
}
.Login-Page-SecCH .form-group.row {
  margin: 0 0 0.25rem !important;
}

/* Field wrapper + label */
.kb-field {
  margin-bottom: 1rem;
}
.kb-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #444;
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
}

/* Input wrapper with icon */
.kb-input-wrapper {
  position: relative;
}
.kb-input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.15rem;
  line-height: 1;
  pointer-events: none;
  z-index: 2;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Twemoji Mozilla", sans-serif;
}
.kb-eye-icon {
  font-size: 1.1rem;
  line-height: 1;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Twemoji Mozilla", sans-serif;
}

/* Inputs */
.Login-Page-SecCH input[type="text"],
.Login-Page-SecCH input[type="password"],
.Login-Page-SecCH .kb-form-input,
.Login-Page-SecCH .form-control {
  width: 100% !important;
  height: 48px;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid #e3dce6;
  border-radius: 10px;
  background: #fafafa;
  font-size: 1rem;
  color: #2a2a2a;
  text-align: left;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  box-shadow: none;
}
.Login-Page-SecCH input[type="text"]:focus,
.Login-Page-SecCH input[type="password"]:focus,
.Login-Page-SecCH .kb-form-input:focus {
  outline: none;
  border-color: #6d3075;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(109, 48, 117, 0.12);
}
.Login-Page-SecCH input[type="text"]::placeholder,
.Login-Page-SecCH input[type="password"]::placeholder {
  color: #b1aab6;
  text-align: left;
}

/* Error state */
.Login-Page-SecCH input.kb-invalid,
.Login-Page-SecCH input.kb-invalid:focus {
  border-color: #d9534f !important;
  background: #fff7f7;
  box-shadow: 0 0 0 3px rgba(217, 83, 79, 0.12);
}
.kb-error-msg {
  display: none;
  font-size: 0.82rem;
  color: #d9534f;
  margin-top: 0.35rem;
  padding-left: 0.1rem;
}
.kb-error-msg.kb-error-visible {
  display: block;
}

/* Password toggle button */
.kb-password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #9b8aa0;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
  z-index: 3;
}
.kb-password-toggle:hover,
.kb-password-toggle:focus {
  color: #6d3075;
  background: rgba(109, 48, 117, 0.08);
  outline: none;
}

/* Remember / Forgot row */
.kb-form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.25rem 0 1.25rem;
}
.kb-form-options .form-check,
.kb-form-options .felement {
  margin: 0;
}
.kb-form-options input[type="checkbox"] {
  accent-color: #6d3075;
  width: 16px;
  height: 16px;
  margin-right: 6px;
}
.kb-form-options label {
  font-size: 0.9rem;
  color: #555;
  margin: 0;
  cursor: pointer;
}
.kb-forgot-link {
  font-size: 0.9rem;
  color: #6d3075;
  font-weight: 600;
  text-decoration: none;
}
.kb-forgot-link:hover,
.kb-forgot-link:focus {
  color: #4a1f50;
  text-decoration: underline;
}

/* Submit button */
.Login-Page-SecCH .login-btn,
.Login-Page-SecCH .kb-login-btn {
  width: 100% !important;
  height: 48px;
  background: linear-gradient(135deg, #6d3075 0%, #8a3e94 100%);
  border: 0;
  border-radius: 10px;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.18s ease, filter 0.15s ease;
  box-shadow: 0 4px 14px rgba(109, 48, 117, 0.28);
}
.Login-Page-SecCH .login-btn:hover,
.Login-Page-SecCH .kb-login-btn:hover {
  filter: brightness(1.06);
  box-shadow: 0 6px 20px rgba(109, 48, 117, 0.38);
  transform: translateY(-1px);
}
.Login-Page-SecCH .login-btn:active,
.Login-Page-SecCH .kb-login-btn:active {
  transform: translateY(0);
}
.Login-Page-SecCH .login-btn:focus,
.Login-Page-SecCH .kb-login-btn:focus {
  outline: 3px solid rgba(109, 48, 117, 0.35);
  outline-offset: 2px;
}

/* Cookies note */
.kb-cookies-note {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: #8d8693;
}
.kb-help-link {
  vertical-align: middle;
  color: #6d3075 !important;
}

/* Bottom sign-up card */
.Bottom-Section-Login .kb-signup-card,
.Bottom-Section-Login .card {
  max-width: 480px;
  margin: 0 auto;
  border: 0 !important;
  border-radius: 16px !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
  background: #ffffff;
}
.Bottom-Section-Login .card-body {
  padding: 1.5rem 1.75rem !important;
}
.Bottom-Section-Login h2 {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: #6d3075 !important;
  text-align: center !important;
  margin: 0 0 0.5rem !important;
}
.kb-signup-text {
  font-size: 0.95rem;
  color: #555;
  margin: 0 0 1rem;
}
.kb-signup-btn,
.Bottom-Section-Login .btn-secondary {
  display: inline-block;
  background: #ffffff !important;
  color: #6d3075 !important;
  border: 1.5px solid #6d3075 !important;
  border-radius: 10px !important;
  padding: 0.55rem 1.5rem !important;
  font-weight: 600 !important;
  transition: background 0.15s ease, color 0.15s ease;
}
.kb-signup-btn:hover,
.kb-signup-btn:focus,
.Bottom-Section-Login .btn-secondary:hover {
  background: #6d3075 !important;
  color: #ffffff !important;
  text-decoration: none;
}

/* Responsive tweaks */
@media (max-width: 575px) {
  .Login-Page-SecCH .card,
  .Login-Page-SecCH .kb-login-card,
  .Bottom-Section-Login .kb-signup-card {
    max-width: 100% !important;
    border-radius: 12px !important;
  }
  .Card-Sec-Ch {
    padding: 1.25rem 1.25rem 1rem !important;
  }
  .kb-login-header {
    padding: 1.5rem 1rem 0.75rem !important;
  }
  .kb-login-title {
    font-size: 1.4rem;
  }
}

/* =========================================================
   Register Page — Reset only.
   Detailed register styling lives inline in forms/signup-form.php
   (.kbr-shell, .kbr-brand, .kbr-form-panel, .kbr-body, etc.).
   These rules ONLY tear down the Moodle login-layout chrome
   that would otherwise sit in front of the new split design.
   ========================================================= */
html body#page-local-sitepages-register #page-content,
html body#page-local-sitepages-register #page-content.row,
html body#page-local-sitepages-register #region-main,
html body#page-local-sitepages-register #region-main-box,
html body#page-local-sitepages-register .login-layout-right,
html body#page-local-sitepages-register #region-main.login-layout-right,
html body#page-local-sitepages-register .login-layout-right-content,
html body#page-local-sitepages-register .login-container,
html body#page-local-sitepages-register form.mform,
html body#page-local-sitepages-register form.mform > div,
html body#page-local-sitepages-register form.mform fieldset,
html body#page-local-sitepages-register form.mform fieldset > .fcontainer {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  min-height: 0 !important;
}
html body#page-local-sitepages-register #page-content,
html body#page-local-sitepages-register #page-content.row {
  flex-direction: row !important;
}
html body#page-local-sitepages-register form.mform fieldset > legend,
html body#page-local-sitepages-register .login-layout-left,
html body#page-local-sitepages-register.pagelayout-login .login-layout-left,
html body#page-local-sitepages-register .scholastic-login-panel,
html body#page-local-sitepages-register .scholastic-login-panel__gradient,
html body#page-local-sitepages-register .scholastic-login-panel__art,
html body#page-local-sitepages-register .scholastic-login-panel__sheen,
html body#page-local-sitepages-register .login-layout-left::before,
html body#page-local-sitepages-register .my-1.my-sm-5,
html body#page-local-sitepages-register #maincontent {
  display: none !important;
}
html body#page-local-sitepages-register {
  background: #ffffff !important;
}

