/* Civic Exam – Custom Login Page
   Colors:
   - Primary: #24338F
   - Accent:  #ea4d80
*/

.civic-login-root{
  max-width: 520px;
  margin: 40px auto;
  padding: 0 16px;
  font-family: inherit;
}

.civic-login-card{
  background: #fff;
  border: 1px solid rgba(36,51,143,.12);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0,0,0,.06);
  padding: 22px 20px;
}

.civic-login-brand{
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.civic-login-logo{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #24338F;
  color: #fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 800;
  letter-spacing: .5px;
}

.civic-login-title{
  font-size: 22px;
  margin: 0;
  color: #111827;
}

.civic-login-sub{
  margin: 4px 0 0;
  color: rgba(17,24,39,.65);
  font-size: 14px;
}

.civic-login-alert{
  border-radius: 14px;
  padding: 12px 12px;
  margin: 12px 0 14px;
  font-size: 14px;
  line-height: 1.35;
}

.civic-login-alert--error{
  background: rgba(234,77,128,.10);
  border: 1px solid rgba(234,77,128,.25);
  color: #7a1d3c;
}

.civic-login-alert--info{
  background: rgba(36,51,143,.08);
  border: 1px solid rgba(36,51,143,.18);
  color: #24338F;
}

/* Target wp_login_form output */
#civic-loginform{
  margin-top: 8px;
}

#civic-loginform p{
  margin: 12px 0;
}

#civic-loginform label{
  display: block;
  font-size: 13px;
  color: rgba(17,24,39,.75);
  margin-bottom: 6px;
}

#civic-loginform input[type="text"],
#civic-loginform input[type="password"],
#civic-loginform input[type="text"].civic-pass-input,
#civic-loginform .civic-pass-wrap input[type="text"],
#civic-loginform .civic-pass-wrap input[type="password"]{
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(17,24,39,.14);
  border-radius: 14px;
  padding: 12px 12px;
  outline: none;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}

#civic-loginform input[type="text"]:focus,
#civic-loginform input[type="password"]:focus{
  border-color: rgba(36,51,143,.55);
  box-shadow: 0 0 0 4px rgba(36,51,143,.12);
}

/* Password eye toggle */
#civic-loginform .civic-pass-wrap{
  position: relative;
  display: block;
}

#civic-loginform .civic-pass-wrap input[type="password"],
#civic-loginform .civic-pass-wrap input[type="text"]{
  padding-right: 44px; /* room for the eye button */
}

#civic-loginform .civic-pass-toggle{
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(17,24,39,.14);
  background: rgba(36,51,143,.06);
  color: #24338F;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  font-size: 14px;
  transition: background .15s ease, border-color .15s ease, transform .06s ease;
}

#civic-loginform .civic-pass-toggle:hover{
  background: rgba(36,51,143,.10);
  border-color: rgba(36,51,143,.22);
}

#civic-loginform .civic-pass-toggle:active{
  transform: translateY(-50%) translateY(1px);
}

#civic-loginform .civic-pass-toggle:focus{
  outline: none;
  box-shadow: 0 0 0 4px rgba(36,51,143,.12);
  border-color: rgba(36,51,143,.35);
}

#civic-loginform .civic-pass-toggle[aria-pressed="true"]{
  background: rgba(234,77,128,.10);
  border-color: rgba(234,77,128,.25);
  color: #ea4d80;
}

#civic-loginform .forgetmenot{
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

#civic-loginform input[type="checkbox"]{
  transform: translateY(1px);
}

#civic-loginform .submit{
  margin-top: 14px;
}

#civic-loginform input[type="submit"]{
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 12px 14px;
  background: #ea4d80;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: transform .06s ease, opacity .15s ease;
}

#civic-loginform input[type="submit"]:hover{
  opacity: .95;
}

#civic-loginform input[type="submit"]:active{
  transform: translateY(1px);
}

.civic-login-links{
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
}

.civic-login-links a{
  color: #24338F;
  text-decoration: none;
  font-weight: 600;
}

.civic-login-links a:hover{
  text-decoration: underline;
}

.civic-login-sep{
  color: rgba(17,24,39,.35);
}

/* Header Login / Dashboard Button */
.civic-header-btn-pink,
.elementor a.civic-header-btn-pink,
.elementor-nav-menu a.civic-header-btn-pink,
.elementor-button.civic-header-btn-pink {
  background: #ea4d80 !important;
  color: #ffffff !important;
  padding: 10px 20px !important;
  border-radius: 10px !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  font-family: "Roboto", Arial, sans-serif !important;
  display: inline-block !important;
  line-height: 1.2 !important;
  box-shadow: 0 6px 14px rgba(234,77,128,.25) !important;
  border: 0 !important;
}

.civic-header-btn-pink:hover,
.elementor a.civic-header-btn-pink:hover,
.elementor-nav-menu a.civic-header-btn-pink:hover,
.elementor-button.civic-header-btn-pink:hover {
  background: #d43f6d !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(234,77,128,.32) !important;
}

/* Prevent theme button styles from leaking into wp_login_form */
#civic-loginform .civic-pass-toggle,
#civic-loginform input[type="submit"]{
  -webkit-appearance: none;
  appearance: none;
}