/* Register area (log in, trouble logging in, password hint, registration steps, error pages).
   Load after tc-theme.css. Gives the existing register views (reg_form, form_element, formHelp ...)
   the new look without changing their markup or form fields. Scoped to body.tc-reg. */

.tc-reg-band { background: var(--tc-hero-bg); height: 180px; position: relative; overflow: hidden; }
.tc-reg-band::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("../image/brand/pitch-lines.svg") center / cover no-repeat; }
.tc-reg-main { padding: 0 1rem 3rem; }

/* The old views give links class="modal" (for the old jQuery pop-up script, no longer loaded).
   Bootstrap uses .modal for its full-screen dialogs, so undo that on links: they are plain links again. */
.tc-reg a.modal { position: static !important; display: inline !important; width: auto !important; height: auto !important;
  overflow: visible !important; z-index: auto !important; outline: 0; }
.tc-reg .reg_form_option a.modal { display: inline-block !important; }

/* the form "card" */
.tc-reg .reg_form { position: relative; max-width: 640px; margin: -120px auto 0; background: #fff;
  border: 1px solid var(--tc-border); border-radius: var(--tc-radius); box-shadow: var(--tc-shadow);
  padding: 2rem clamp(1.25rem, 4vw, 2.25rem); }
.tc-reg .reg_form::after { content: ""; display: block; clear: both; }
.tc-reg .reg_form h2 { font-size: 1.5rem; font-weight: 700; margin: 0 0 1rem; color: var(--tc-ink); }
.tc-reg .reg_form h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 .5rem; }
.tc-reg .reg_form p { color: var(--tc-muted); }
.tc-reg .reg_form a:not(.btn) { color: #0f7fa6; }

/* "Back" / "Register" / "Return" link at the top right of the card */
.tc-reg .reg_form_option { float: right; margin: .15rem 0 .5rem 1rem; }
.tc-reg .reg_form_option a { display: inline-block; border: 1.5px solid var(--tc-accent); border-radius: 999px;
  padding: .3rem .9rem; font-size: .85rem; font-weight: 600; text-decoration: none; color: #0f7fa6; }
.tc-reg .reg_form_option a:hover { background: rgba(26, 180, 232, .08); }
.tc-reg .reg_form_option:empty { display: none; }

/* error pages */
.tc-reg .reg_form.reg_error { border-top: 4px solid #d9534f; }
.tc-reg .reg_form.reg_error h2::before { content: "\F33A"; font-family: bootstrap-icons; color: #c0392b; margin-right: .5rem; vertical-align: -.1em; }

/* fields */
.tc-reg fieldset { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
.tc-reg legend { font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--tc-muted); margin-bottom: .5rem; float: none; width: auto; }
/* old markup only: Bootstrap fields (.form-control, .form-floating, .form-check) keep their own styles */
.tc-reg .reg_form label:not(.form-check-label):not(.form-floating > label) { display: block; font-weight: 600; font-size: .9rem; margin: .75rem 0 .35rem; color: var(--tc-ink); }
.tc-reg .form_element,
.tc-reg .reg_form input[type=text]:not(.form-control), .tc-reg .reg_form input[type=password]:not(.form-control), .tc-reg .reg_form input[type=email]:not(.form-control),
.tc-reg .reg_form input[type=tel]:not(.form-control), .tc-reg .reg_form select:not(.form-select), .tc-reg .reg_form textarea:not(.form-control) {
  display: block; width: 100%; padding: .7rem .9rem; font-size: 1rem; line-height: 1.5; color: var(--tc-ink);
  background: #fff; border: 1px solid #d6dee5; border-radius: 10px; transition: border-color .15s, box-shadow .15s; }
.tc-reg .form_element:focus, .tc-reg .reg_form input:focus, .tc-reg .reg_form select:focus, .tc-reg .reg_form textarea:focus {
  outline: 0; border-color: var(--tc-accent); box-shadow: 0 0 0 .2rem rgba(26, 180, 232, .18); }
.tc-reg .reg_form input[type=checkbox], .tc-reg .reg_form input[type=radio] { width: auto; display: inline-block; margin-right: .4rem; accent-color: var(--tc-accent); }
.tc-reg .reg_form br { display: none; }

/* card number boxes (2 + 4 + 4 + 4 digits): override the old inline 20px / 40px widths */
.tc-reg #txtScheme:not(.form-control), .tc-reg #txtTCNumber1:not(.form-control), .tc-reg #txtTCNumber2:not(.form-control), .tc-reg #txtTCNumber3:not(.form-control) {
  display: inline-block; text-align: center; letter-spacing: .12em; font-variant-numeric: tabular-nums;
  padding-inline: .25rem; margin: 0 .25rem .5rem 0; }
.tc-reg #txtScheme:not(.form-control) { width: 4.25rem !important; }
.tc-reg #txtTCNumber1:not(.form-control), .tc-reg #txtTCNumber2:not(.form-control), .tc-reg #txtTCNumber3:not(.form-control) { width: 6.25rem !important; }

/* help notes under fields: always visible, small and muted */
.tc-reg .formHelp { margin-top: .35rem; }
.tc-reg .helpMsg { font-size: .82rem; color: var(--tc-muted); }

/* buttons */
.tc-reg .reg_form button:not(.btn), .tc-reg .reg_form input[type=submit]:not(.btn), .tc-reg .reg_form .standard_button {
  display: inline-block; margin-top: 1rem; padding: .75rem 1.5rem; border: 0; border-radius: 10px;
  background: var(--tc-gradient); color: #fff !important; font-weight: 600; letter-spacing: .02em;
  text-decoration: none; text-align: center; cursor: pointer; box-shadow: 0 6px 16px rgba(26, 180, 232, .28); }
.tc-reg .reg_form button:not(.btn):hover, .tc-reg .reg_form .standard_button:hover { filter: brightness(1.04); }
.tc-reg .reg_form button:not(.btn) { width: 100%; }

/* messages */
.tc-reg #form_errors, .tc-reg .error_info { background: #fdecea; border: 1px solid #f5c2c0; color: #8a1f17;
  border-radius: 10px; padding: .75rem 1rem; margin: 0 0 1rem; font-size: .9rem; }
.tc-reg #form_errors p { color: #8a1f17; margin: 0; }
.tc-reg .error_info { margin-top: .4rem; padding: .4rem .75rem; }
.tc-reg #passwordHint { background: #eaf7fd; border: 1px solid #bfe6f6; border-radius: 10px; padding: .75rem 1rem; margin-top: .75rem; }

/* option boxes (trouble logging in, fob choices) */
.tc-reg .forgot_choice, .tc-reg .fob_choice, .tc-reg .fob_choice_retail {
  border: 1px solid var(--tc-border); border-radius: 12px; padding: 1.1rem 1.25rem; margin-top: 1rem; background: #fbfdfe; }
.tc-reg .forgot_choice .standard_button { margin-right: .5rem; }

/* links under the log-in form */
.tc-reg .login_options { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin-top: 1rem; font-size: .9rem; }
.tc-reg .login_options a { text-decoration: none; }

@media (max-width: 575.98px) {
  .tc-reg-band { height: 140px; }
  .tc-reg .reg_form { margin-top: -90px; }
  .tc-reg .reg_form_option { float: none; margin: 0 0 .75rem; }
  .tc-reg #txtScheme:not(.form-control) { width: 3.1rem !important; }
  .tc-reg #txtTCNumber1:not(.form-control), .tc-reg #txtTCNumber2:not(.form-control), .tc-reg #txtTCNumber3:not(.form-control) { width: 4.3rem !important; }
}
