/* Authentication Pages Styles */

body.auth-page {
  background: var(--bg-card);
}

.auth-page .auth-main {
  width: 100%;
  min-height: calc(100vh - 50px);
}

.auth-layout .form-control,
.auth-layout input {
  background-color: var(--bg-card) !important;
}

.auth-page .auth-layout {
  min-height: calc(100vh - 50px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg) 12px;
}

body.is-mobile {
  .auth-page .auth-layout {
    min-height: auto;
    padding: var(--space-md) 12px 72px;
  }
}

/* The reuse of global variables */
.auth-page .login-card,
.auth-page .reg-card,
.auth-page .welcome-card,
.auth-page .forgot-card,
.auth-page .reset-card {
  background: var(--bg-card);
  padding: 36px !important;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100% !important;
  max-width: var(--auth-max-width) !important;
  margin: auto !important;
}

.auth-page .subtext {
  color: var(--text-muted);
  margin-bottom: 20px;
  text-align: center;
}
.auth-page h3 {
  text-align: center;
  margin-bottom: 10px;
  color: var(--text-main);
}
.auth-page .auth-field {
  margin-bottom: var(--space-md);
}

.auth-page .footer-links a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s;
}
.auth-page .footer-links {
  margin-top: var(--space-sm);
}
.auth-page .footer-links a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.auth-page .btn-primary,
.auth-page .btn-reg {
  width: 100%;
  display: block;
  padding: 12px;
}

/* Password View Toggles */
.auth-page .password-field {
  position: relative;
}
.auth-page .password-field .form-control {
  padding-right: 45px !important;
}
.auth-page .password-field .form-control.is-invalid {
  padding-right: 70px !important;
  background-position: right 12px center !important;
  background-size: 18px 18px !important;
}

.auth-page .password-field .toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  width: var(--space-lg);
  height: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: right 0.2s ease;
}

.auth-page .password-field .form-control.is-invalid ~ .toggle-password {
  right: 38px !important;
}
