/*
 * Custom login page styles.
 * Includes mobile OTP login, password login, Google login,
 * and related layout components.
 *
 * @package    theme_almondb
 * @subpackage style
 * @copyright  2026 EDZLMS <support@edzlms.com>
 * @author     Proteek Jana
 */

#page-login-index {
  background: #fffced;
}
.teacherapp-logo {
  text-align: center;
  margin-bottom: 20px;
}

.teacherapp-logo img {
  width: 220px; /* Increase from 120px */
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.teacherapp-title {
  text-align: center;
  font-weight: 700;
  font-size: 30px;
  margin-bottom: 30px;
  color: var(--bs-body-color);
}

.teacherapp-mobile-input {
  display: flex;
  align-items: center;
  border: 2px solid #00b3c8;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bs-body-bg);
}

.teacherapp-mobile-input span {
  padding: 12px 16px;
  background: var(--bs-tertiary-bg);
  color: var(--bs-body-color);
  font-weight: 600;
}

.teacherapp-mobile-input input {
  border: none;
  flex: 1;
  outline: none;
  background: transparent;
  color: var(--bs-body-color);
}
.teacherapp-mobile-input:focus {
  border: 2px solid #00b3c8 !important;
}
#loginbtn {
  margin-top: 18px;
  margin-bottom: 12px;
  height: 56px;
  border-radius: 0.75rem;

  background: var(--firki-brand-color);
  border-color: var(--firki-brand-color);
  color: var(--firki-brand-white);

  font-weight: 700;
}

#loginbtn:hover {
  background: var(--firki-brand-color);
  border-color: var(--firki-brand-color);
  filter: brightness(0.95);
}

#loginbtn:focus,
#loginbtn:active {
  background: var(--firki-brand-color) !important;
  border-color: var(--firki-brand-color) !important;
  box-shadow: none;
}
/* OTP Success / Error Messages */

#alerts-wrapper {
  width: 100%;
  margin-bottom: 16px;
}

#alerts-wrapper .alert,
#alerts-wrapper .alert-success,
#alerts-wrapper .alert-danger,
#alerts-wrapper .alert-warning,
#alerts-wrapper .alert-info {
  width: 100%;
  display: block;
  box-sizing: border-box;
  margin: 0;
  border-radius: 0.75rem;
}
/* OTP Button Loader */

#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;
}
.teacherapp-divider {
  display: flex;
  align-items: center;
  margin: 12px 0;
}

.teacherapp-divider::before,
.teacherapp-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--firki-brand-border-color);
}

.teacherapp-divider span {
  margin: 0 12px;
  color: var(--firki-brand-black);
  font-weight: 600;
}

.teacherapp-signup {
  margin-top: 30px;
  text-align: center;
}

#password-login-wrapper .text-center a {
  font-size: 18px;
  color: var(--firki-brand-black) !important;
}
/* ---------------- OTP ---------------- */

#resend-otp-btn {
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--firki-brand-blue);
  text-decoration: none;
}

#resend-otp-btn:disabled {
  border: none;
  background: transparent;
  box-shadow: none;
  opacity: 0.7;
  color: var(--firki-brand-blue);
  cursor: default;
}

#resend-otp-btn:not(:disabled) {
  color: var(--firki-brand-color);
  cursor: pointer;
}

#resend-otp-btn:focus {
  outline: none;
  box-shadow: none;
}

/* ---------------- Username / Password ---------------- */

#password-login-wrapper {
  margin-top: 20px;
}

#password-login-wrapper .form-control {
  height: 50px;
  border-radius: 8px;
  font-size: 0.9375rem;
  box-shadow: none;
  border: 2px solid #e3e1ce;
}

#password-login-wrapper .btn {
  margin-top: 10px;
}
/* ---------------- google ---------------- */
.teacherapp-google-btn {
  border: 1px solid var(--firki-brand-border-color);
  border-radius: 0.75rem;
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
}

.teacherapp-google-btn:hover,
.teacherapp-password-btn:hover {
  background: var(--bs-tertiary-bg) !important;
  border-color: var(--firki-brand-border-color) !important;
  color: var(--bs-body-color) !important;
}

/* ---------------- Password Toggle ---------------- */

.teacherapp-password-wrapper {
  position: relative;
}

.teacherapp-password-wrapper input {
  padding-right: 42px;
}

.teacherapp-password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: var(--firki-brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.teacherapp-password-toggle:hover {
  color: var(--bs-body-color);
  background: transparent;
}

.teacherapp-password-toggle:focus {
  outline: none;
  box-shadow: none;
}

.teacherapp-password-toggle i {
  font-size: 18px;
}
/* back to home */
.teacherapp-back-home {
  margin-top: 24px;
  text-align: center;
}

.teacherapp-back-home a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: 0.2s ease;
}

.teacherapp-back-home a:hover {
  text-decoration: underline;
  opacity: 0.85;
}
.teacherapp-login-options {
  display: flex;
  width: 100%;
  gap: 12px;
}

.teacherapp-login-options > .teacherapp-google,
.teacherapp-login-options > .teacherapp-password-btn {
  flex: 0 0 calc(50% - 6px);
  max-width: calc(50% - 6px);
}

.teacherapp-google {
  display: flex;
}
@media (max-width: 576px) {
  .teacherapp-login-options {
    flex-direction: column;
    gap: 10px;
  }

  .teacherapp-login-options > .teacherapp-google,
  .teacherapp-login-options > .teacherapp-password-btn {
    flex: 1 1 100%;
    max-width: 100%;
  }
}
.teacherapp-google-btn,
.teacherapp-password-btn {
  width: 100%;
  min-height: 46px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  white-space: normal;
  line-height: 1.2;
  border: 1px solid var(--firki-brand-border-color) !important;
  border-radius: 0.75rem;
}
.teacherapp-google-btn,
.teacherapp-password-btn {
  border: 1px solid var(--firki-brand-border-color) !important;
  border-radius: 0.75rem;
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
}
.teacherapp-google-btn {
  background: var(--bs-body-bg) !important;
}

.teacherapp-google-btn:hover,
.teacherapp-password-btn:hover {
  background: var(--bs-tertiary-bg);
}
.teacherapp-logo {
  margin-bottom: 12px;
}

.teacherapp-title {
  margin-bottom: 18px;
}

.teacherapp-mobile-section {
  margin-bottom: 10px;
}

#loginbtn {
  margin-top: 10px;
  margin-bottom: 10px;
}
#loginbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.teacherapp-divider {
  margin: 10px 0;
}

.teacherapp-login-options {
  margin-bottom: 14px;
}

.teacherapp-signup {
  margin-top: 18px;
  margin-bottom: 12px;
}

.teacherapp-back-home {
  margin-top: 14px;
}
/* Login option buttons hover effect */

.teacherapp-google-btn,
.teacherapp-password-btn {
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.teacherapp-google-btn:hover,
.teacherapp-password-btn:hover {
  background-color: var(--bs-tertiary-bg);
  border-color: var(--firki-brand-blue);
  color: var(--bs-body-color);
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.teacherapp-google-btn:focus,
.teacherapp-password-btn:focus {
  background-color: var(--bs-tertiary-bg);
  border-color: var(--firki-brand-color);
  color: var(--bs-body-color);
  box-shadow: 0 0 0 0.2rem rgba(var(--firki-brand-color-rgb), 0.15);
}
.teacherapp-login-header {
  text-align: left;
  margin-bottom: 24px;
}

.teacherapp-login-label {
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #00b5d9;
  margin-bottom: 0px;
}

.teacherapp-login-title {
  margin: 0;
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  color: #333333;
}

.teacherapp-login-subtitle {
  margin: 8px 0 0;
  font-size: 18px;
  line-height: 1.5;
  color: #666666;
  max-width: 420px;
}
.teacherapp-recaptcha {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}
/* ==========================================
   18px Text Sizes
   ========================================== */

/* Username, Mobile, Password & OTP input text */
.teacherapp-mobile-input input,
#passwordlogin,
.otp-wrapper input,
#password {
  font-size: 18px;
}

/* Placeholder text */
.teacherapp-mobile-input input::placeholder,
#passwordlogin::placeholder,
.otp-wrapper input::placeholder,
#password::placeholder {
  font-size: 18px;
}

/* Don't have an account? Sign up */
.teacherapp-signup,
.teacherapp-signup a {
  font-size: 18px;
}

/* Back to homepage */
.teacherapp-back-home,
.teacherapp-back-home a {
  font-size: 18px;
}

/* Forgot Password */
#password-login-wrapper .text-center a {
  font-size: 18px;
}

/* OTP helper buttons */
#edit-enrolmentnumber-btn,
#resend-otp-btn {
  font-size: 18px;
}
/* Username field placeholder */
#passwordloginform input[name="username"]::placeholder {
  font-size: 18px;
}
/* Username field */
#passwordloginform input[name="username"] {
  font-size: 18px;
}

/* Username field placeholder */
#passwordloginform input[name="username"]::placeholder {
  font-size: 18px;
}
/* Password field typed text */
#passwordlogin {
  font-size: 18px !important;
}

/* Password placeholder */
#passwordlogin::placeholder {
  font-size: 18px !important;
}
/* ==========================================
   Make Login button match Send OTP button
   ========================================== */

#loginbtn,
#passwordloginbtn {
  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;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: 0.2s ease;
}

#loginbtn:hover,
#passwordloginbtn:hover {
  background: #00919f !important;
  border-color: var(--teal-dark) !important;
  filter: brightness(0.95);
  color: var(--firki-brand-white) !important;
}

#loginbtn:focus,
#passwordloginbtn:focus,
#loginbtn:active,
#passwordloginbtn:active {
  background: var(--firki-brand-color) !important;
  border-color: var(--firki-brand-color) !important;
  color: var(--firki-brand-white) !important;
  box-shadow: none;
}
/* Login error message */
#loginerrormessage,
.loginerrors,
.alert.alert-danger {
  width: 100%;
  margin: 0 0 20px;
  box-sizing: border-box;
}

/* If the alert is inside a wrapper */
#loginerrormessage .alert,
.loginerrors .alert {
  width: 100%;
  margin: 0;
}
#page-login-signup {
  background: #fffced !important;
}

.teacherapp-login-title,
.firki-heading {
  font-family: "Barlow Condensed", sans-serif !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  font-size: 28px !important;
  letter-spacing: 0.3px !important;
  margin: 0 0 6px !important;
}
#passwordloginform input[name="username"]:focus {
  border: 2px solid #e3e1ce !important;
}
#passwordloginform input[name="password"]:focus {
  border: 2px solid #00b3c8 !important;
}
.teacherapp-mobile-input:focus {
  border: 2px solid #00b3c8 !important;
}

body.pagelayout-login input::placeholder,
#page-login-index input::placeholder {
  color: #8a897d !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

/* Rashid: 22 july 26 - Highlight Google button on OAuth error */
.teacherapp-google.oauth-highlight {
  animation: oauth-pulse 1.2s ease-in-out 3;
}
.teacherapp-google.oauth-highlight .teacherapp-google-btn {
  border: 2px solid #00b3c8 !important;
  box-shadow: 0 0 0 4px rgba(66, 133, 244, 0.25);
}
@keyframes oauth-pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
  100% {
    transform: scale(1);
  }
}
