.iw2fa-box{
  max-width: 760px;
  margin: 24px auto;
  padding: 20px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 14px;
  background: #fff;
  font-family: Questrial, Helvetica, Arial, sans-serif;
  line-height: 1.45;
}

/* 2FA pages: keep footer at the bottom on short content */
body.iw2fa-auth-body #page-container{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.iw2fa-auth-body #et-main-area,
body.iw2fa-auth-body #main-content{
  flex: 1 0 auto;
}

body.iw2fa-auth-body #main-footer,
body.iw2fa-auth-body footer{
  margin-top: auto;
}

/* Divi/ET layout fallback: keep enough vertical space in content column */
body.iw2fa-auth-body #main-content .container,
body.iw2fa-auth-body #content-area,
body.iw2fa-auth-body #left-area{
  height: 100%;
}

body.iw2fa-auth-body #left-area .entry-content,
body.iw2fa-auth-body .entry-content{
  min-height: 68vh;
}
.iw2fa-box h3,
.iw2fa-box h4{
  margin: 0 0 8px 0;
}
.iw2fa-box p{
  margin: 0 0 8px 0;
}
.iw2fa-form{
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.iw2fa-form--mt{
  margin-top: 14px;
}
.iw2fa-form input{
  border: 1px solid rgba(0,0,0,.18);
  border-radius: 10px;
  min-height: 40px;
  padding: 8px 10px;
}
.iw2fa-required{
  color: #d92d20;
}
.iw2fa-password-wrap{
  position: relative;
}
.iw2fa-password-wrap input{
  width: 100%;
  padding-right: 46px;
}
.iw2fa-password-toggle{
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.iw2fa-password-toggle:hover{
  background: rgba(0,0,0,.04);
}
.iw2fa-password-toggle:focus{
  outline: none;
  border-color: rgba(0,0,0,.2);
}
.iw2fa-eye{
  display: inline-flex;
  width: 18px;
  height: 18px;
}
.iw2fa-eye svg{
  width: 18px;
  height: 18px;
}
.iw2fa-eye--hide{
  display: none;
}
.iw2fa-password-toggle.is-revealed .iw2fa-eye--show{
  display: none;
}
.iw2fa-password-toggle.is-revealed .iw2fa-eye--hide{
  display: inline-flex;
}
.iw2fa-remember{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #222;
}
.iw2fa-remember input{
  min-height: auto;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1px solid #6f7787;
  border-radius: 5px;
  accent-color: #111;
  -webkit-appearance: checkbox;
  appearance: checkbox;
}
.iw2fa-inline-otp{
  border: 1px solid rgba(0,0,0,.12);
  background: #fafbff;
  border-radius: 12px;
  padding: 12px;
}
.iw2fa-btn{
  border-radius: 10px;
  border: 1px solid transparent;
  min-height: 40px;
  padding: 0 14px;
  cursor: pointer;
}
.iw2fa-btn--primary{
  background: #0a5b76;
  color: #fff;
}
.iw2fa-btn--secondary{
  background: #fff;
  color: #0a5b76;
  border-color: #0a5b76;
}
.iw2fa-btn--danger{
  background: #fff;
  color: #b42318;
  border-color: #b42318;
}
.iw2fa-btn:disabled,
.iw2fa-btn[disabled]{
  opacity: .45;
  cursor: not-allowed;
  filter: grayscale(.2);
}
.iw2fa-register-submit{
  margin-top: 10px;
}
.iw2fa-notice{
  padding: 10px 12px;
  border-radius: 10px;
  margin-top: 10px;
}
.iw2fa-notice--ok{
  background: rgba(53,184,118,.12);
  color: #14613d;
}
.iw2fa-notice--err{
  background: #fff1f0;
  color: #b42318;
}
.iw2fa-guidance{
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.14);
  background: #f8f8f8;
  color: #1f1f1f;
  font-size: 13px;
  line-height: 1.4;
}
.iw2fa-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}
.iw2fa-grid .iw2fa-form{
  margin-top: 0;
  background: #f6f8fa;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 210px;
}
.iw2fa-grid .iw2fa-form .iw2fa-btn{
  margin-top: auto;
  width: 100%;
}
.iw2fa-help{
  font-size: 13px;
  color: rgba(0,0,0,.62);
}
.iw2fa-setup{
  margin-top: 14px;
  padding: 14px;
  border-radius: 12px;
  background: #f6f8fa;
  border: 1px solid rgba(0,0,0,.1);
}
.iw2fa-setup img{
  display: block;
  max-width: 220px;
  height: auto;
  margin-bottom: 10px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,.12);
}
.iw2fa-setup code{
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.iw2fa-secret-row{
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 10px;
  width: 100%;
}
.iw2fa-secret-row code{
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 10px;
  background: #fff;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
  line-height: 1.35;
}
.iw2fa-copy-btn{
  min-width: 88px;
  flex: 0 0 auto;
}
@media (max-width: 640px){
  .iw2fa-secret-row{
    flex-direction: column;
    align-items: stretch;
  }
  .iw2fa-secret-row code{
    width: 100%;
  }
  .iw2fa-copy-btn{
    width: 100%;
  }
}
@media (max-width: 860px){
  .iw2fa-grid{
    grid-template-columns: 1fr;
  }
}

.iw2fa-auth-box{
  max-width: 760px;
  width: calc(100% - 24px);
}
.iw2fa-profile-shell{
  max-width: 1280px;
  width: 100%;
}
.iw2fa-tabs{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}
.iw2fa-tab{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid #d6d6d6;
  border-radius: 10px;
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 600;
}
.iw2fa-tab.is-active{
  background: #111;
  border-color: #111;
  color: #fff;
}
.iw2fa-form label{
  font-size: 13px;
  font-weight: 600;
  margin-top: 4px;
}
.iw2fa-tabs--profile{
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
  margin-bottom: 14px;
}
.iw2fa-tabs--profile .iw2fa-tab{
  border: 1px solid #d8dce9;
  background: #f7f8fc;
}
.iw2fa-tabs--profile .iw2fa-tab.is-active{
  background: #111;
  border-color: #111;
  color: #fff;
}
.iw2fa-profile-panel{
  display: none;
  min-height: 380px;
}
.iw2fa-profile-panel.is-active{
  display: block;
}
.iw2fa-form--split{
  gap: 12px;
}
.iw2fa-field{
  display: grid;
  gap: 6px;
}
.iw2fa-field--full{
  grid-column: 1 / -1;
}
@media (min-width: 900px){
  .iw2fa-form--split{
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }
}
@media (max-width: 860px){
  .iw2fa-tabs--profile{
    grid-template-columns: 1fr;
  }
  .iw2fa-profile-panel{
    min-height: 0;
  }
}
.iw2fa-btn--primary{
  background: #111;
  color: #fff;
}
.iw2fa-btn--secondary{
  background: #fff;
  color: #111;
  border-color: #111;
}
.iw2fa-email-verify-row{
  display: grid;
  gap: 8px;
  margin-top: 2px;
  margin-bottom: 2px;
  padding: 10px;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 10px;
  background: #fafafa;
}
.iw2fa-email-verify-row .iw2fa-btn{
  width: 100%;
}
@media (max-width: 640px){
  .iw2fa-box{
    margin: 14px auto;
    width: calc(100% - 16px);
    padding: 16px;
    border-radius: 12px;
  }
  .iw2fa-auth-box{
    width: calc(100% - 16px);
    max-width: 760px;
  }
}
