/* Two-factor authentication (2026-10-21): login challenge / enrolment pages on top of css/login.php, and the My Profile 2FA panel */
.main.tf_main{ min-height: 100vh; height: auto; padding-bottom: 96px; box-sizing: border-box; }   /* room for the absolute guest footer */
.main.tf_main .login_slideshow_container{ position: fixed; }
.tf_container{ display: flex; align-items: stretch; height: auto; min-height: 400px; }
.tf_container .login_container_left, .tf_container .login_container_right{ float: none; height: auto; }
.tf_left{ display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 30px 32px; box-sizing: border-box; }
.tf_left .login_container_left_top_text{ position: static; }
.tf_left_text{ font-family: "Roboto", Arial, sans-serif; font-size: 14px; line-height: 1.6; color: #2b3d5c; text-align: center; margin-top: 16px; max-width: 330px; }
.tf_left_text b{ color: #0d4fa0; }
.tf_right{ display: flex; flex-direction: column; align-items: center; padding-bottom: 28px; box-sizing: border-box; }
.tf_right .login_container_right_input_container{ margin-top: 40px; }
.tf_right .login_container_right_login_button{ margin-top: 20px; }
.tf_code{ letter-spacing: 6px; font-weight: 700; }
/* 2026-10-26: password reset pages */
.tf_readonly{ color: #555; background: #f1f1f1; }
.tf_right .errorMsg{ margin-top: 10px; }
.tf_setup{ font-family: "Roboto", Arial, sans-serif; color: #2b3d5c; width: 100%; }
.tf_steps{ margin: 14px 0 10px; padding-left: 18px; font-size: 13px; line-height: 1.6; }
.tf_steps b{ color: #0d4fa0; }
.tf_qr_wrap{ display: flex; justify-content: center; margin: 12px 0; }
.tf_qr{ width: 216px; height: 216px; padding: 8px; background: #fff; border-radius: 10px; box-shadow: 0 10px 24px -12px rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; box-sizing: content-box; }
.tf_qr canvas, .tf_qr img, .tf_qr table{ display: block; }
.tf_qr_missing{ font-size: 12px; color: #8a1c1c; text-align: center; padding: 10px; }
.tf_manual{ font-size: 12px; margin-top: 8px; }
.tf_manual summary{ cursor: pointer; color: #0d4fa0; font-weight: 700; }
.tf_manual_body{ margin-top: 8px; display: grid; gap: 6px; }
.tf_manual_body > div{ display: flex; gap: 10px; align-items: baseline; }
.tf_k{ flex: none; width: 64px; font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; opacity: .75; }
.tf_secret{ font-family: Consolas, "Courier New", monospace; font-size: 15px; letter-spacing: 1px; word-break: break-all; background: #f0f4f9; color: #0b2a5b; padding: 4px 8px; border-radius: 6px; }
/* My Profile panel */
.tf_panel_grid{ display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.tf_panel_form{ background: #f7f9fc; border: 1px solid #dfe3e8; border-radius: 10px; padding: 18px; }
.tf_panel_form h3{ margin: 0 0 10px; font-size: 14px; color: #0d4fa0; text-transform: uppercase; letter-spacing: .4px; }
.tf_panel_form p{ margin: 0 0 12px; font-size: 13px; color: #444; line-height: 1.5; }
.tf_inline{ display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tf_inline .mp_input{ width: 220px; }
.tf_or{ font-size: 12px; color: #8a8a8a; }
.mp_button_secondary{ background: #fff; color: #0d4fa0; border: 1px solid #0d4fa0; }
.mp_button_secondary:hover{ background: #0d4fa0; color: #fff; }
.mp_button_danger{ background: #fff; color: #c62828; border: 1px solid #c62828; }
.mp_button_danger:hover{ background: #c62828; color: #fff; }
@media all and (max-width: 900px){ .tf_panel_grid{ grid-template-columns: 1fr; } }
@media all and (max-width: 760px){ .tf_container{ height: auto; } .tf_left, .tf_right{ width: 100%; } .tf_inline .mp_input{ width: 100%; } }

/* recovery codes (ver 3) */
.tf_recovery_left{ font-size: 12px; color: #555; margin-left: 6px; }
.tf_recovery_box{ background: #fff8e1; border: 1px solid #f3d27a; border-radius: 10px; padding: 18px; margin: 0 0 18px; }
.tf_recovery_box h3{ margin: 0 0 8px; font-size: 14px; color: #8a5a00; text-transform: uppercase; letter-spacing: .4px; }
.tf_recovery_box p{ margin: 0 0 12px; font-size: 13px; color: #444; line-height: 1.5; }
.tf_recovery_list{ list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tf_recovery_list code{ display: block; font-family: Consolas, 'Courier New', monospace; font-size: 16px; letter-spacing: 1px; text-align: center; background: #fff; border: 1px dashed #d9b85c; border-radius: 6px; padding: 8px 4px; color: #0b2a5b; user-select: all; }
.tf_recovery_done{ font-size: 12px; color: #2e7d32; }
.tf_panel_form_recovery{ margin-bottom: 16px; }
.tf_recovery_toggle_line{ margin: 10px 0 0; font-size: 12px; }
.tf_recovery_toggle{ color: #0d4fa0; text-decoration: none; font-weight: 700; }
.tf_recovery_toggle:hover{ text-decoration: underline; }
.tf_recovery_manage{ margin-top: 16px; }
.tf_recovery_code{ letter-spacing: 3px; font-weight: 700; text-transform: uppercase; }
/* ver 6 (2026-11-04, owner): the cancel sentence under the code field is an X at the top right of the white column
   (GET login/cancel); the remaining secondary links (recovery code, back, password pages) use the quiet style of the
   sign-in page's "Forgot password?" (login.php ver 3 dropped .login_container_right_forgot_password). */
.tf_right{ position: relative; }
.tf_close, .tf_close:visited{ position: absolute; top: 12px; right: 14px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-family: 'Roboto', Arial, sans-serif; font-size: 26px; line-height: 1; font-weight: 300; color: #8a8a8a; text-decoration: none; transition: background 120ms ease, color 120ms ease; }
.tf_close:hover, .tf_close:focus-visible{ background: #f0f4f9; color: #0d4fa0; }
.tf_close:focus-visible{ outline: 2px solid #ffca50; outline-offset: 2px; }
.tf_sub_link, .tf_sub_link:visited{ display: inline-block; margin-top: 14px; font-family: 'Roboto', Arial, sans-serif; font-size: 13px; line-height: 18px; color: #6f6f6f; text-decoration: none; }
.tf_sub_link:hover, .tf_sub_link:focus-visible{ color: #0d4fa0; text-decoration: underline; text-underline-offset: 2px; }
.tf_sub_link:focus-visible{ outline: 2px solid #ffca50; outline-offset: 2px; border-radius: 2px; }
/* ver 6: on phones the two panels stack (they stayed side by side and overflowed: .tf_left{display:flex} beat login.php's display:none and the flex row never wrapped) */
@media all and (max-width: 760px){ .tf_close{ top: 10px; right: 10px; } .tf_container{ flex-direction: column; width: calc(100% - 24px); max-width: 420px; min-height: 0; } .tf_left{ border-radius: 25px 25px 0 0; padding: 26px 22px; } .tf_right{ border-radius: 0 0 25px 25px; } }
@media all and (max-width: 900px){ .tf_recovery_list{ grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* admin edit pages */
.tf_admin_box{ width: 1475px; max-width: 100%; margin: 12px auto 0; background: #f4f3f3; padding: 14px 20px 18px; box-sizing: border-box; position: relative; font-family: 'Roboto', Arial, sans-serif; }
.tf_admin_box h2{ margin: 0 0 6px; font-size: 16px; color: #0d4fa0; font-weight: 700; letter-spacing: .3px; }
.tf_admin_line{ display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-family: 'Roboto', Arial, sans-serif; font-size: 13px; color: #444; padding: 6px 0 14px; }
.tf_admin_button{ background: #fff; border: 1px solid #0d4fa0; color: #0d4fa0; border-radius: 4px; padding: 6px 12px; font-size: 12px; font-weight: 700; cursor: pointer; font-family: inherit; }
.tf_admin_button:hover{ background: #0d4fa0; color: #fff; }
