.kb2fa-form {
  max-width: 400px;
  margin: 50px auto;
  padding: 25px 30px;
  border: 1px solid #CFDEEA;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  font-size: 14px;
  color: #383838;
  box-sizing: border-box;
}

/* First row (input + verify button) */
.kb2fa-form form:first-of-type {
  display: flex;
  column-gap: 8px;
  width: 100%;
  margin-bottom: 15px;
}

/* Input field */
.kb2fa-form input[name="kb2fa_code"] {
  flex: 1 1 auto;
  min-width: 0;
  padding: 12px 15px;
  border-radius: 5px;
  border: 1px solid #7FA8C6;
  font-size: 16px;
  color: #00528d;
  height: 45px;
  outline: none;
  transition: border-color .2s ease-in-out, box-shadow .2s ease-in-out;
}
.kb2fa-form input[name="kb2fa_code"]:focus {
  border-color: #f25e24;
  box-shadow: 0 0 4px rgba(242,94,36,0.3);
}

/* Buttons (shared styles) */
.kb2fa-form #kb2fa-verify,
.kb2fa-form #kb2fa-resend {
  padding: 12px 20px;
  border: none;
  border-radius: 5px;
  background: #0a9db1;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: background .2s ease-in-out;
  text-transform: uppercase;
  box-sizing: border-box;
}

/* Verify button (specific sizing) */
.kb2fa-form #kb2fa-verify {
  flex: 0 0 100px;
  height: 45px;
}
.kb2fa-form #kb2fa-verify:hover {
  background: #9dc43c;
}


/* Resend button (full width) */
.kb2fa-form #kb2fa-resend {
  margin: 8px 0;
  width: 100%;
  text-align: center;
}
.kb2fa-form #kb2fa-resend:hover {
  background: #9dc43c;
}

/* Disabled button state */
.kb2fa-form #kb2fa-resend:disabled {
  background: #84CED8;
  color: #CFDEEA;
  cursor: not-allowed;
  opacity: 0.7;
}

/* Flash messages */
.kb2fa-error,
.kb2fa-success {
  margin: 12px 0;
  padding: 10px 15px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 600;
}

.kb2fa-error {
  background: #A03717;
  color: #fff;
}

.kb2fa-success {
  background: #EBFAE5;
  color: #61a547;
  border: 1px solid #61a54780;
}