﻿/* SMS one-time code login. Loaded after admin.css; reuses its card look (.login, .input, .button_big).
   Selectors are scoped to avoid admin.css globals: input { width: 80% }, label:before, input[type=checkbox]. */

.sms-panel[hidden],
#pnlPassword[hidden],
.sms-panel [hidden] { display: none !important; }

/* Password panel additions */
.login .sms-or { margin: 0; font-size: 13px; line-height: 1; color: #fff; text-align: center; text-shadow: -1px -1px 0 rgba(0,0,0,0.3); }
.login .sms-alt-button { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin: 12px 0 8px 0; padding: 7px 10px; border: 1px solid #ccc; background-color: #fff; color: #24466f; font-size: 15px; font-weight: 600; line-height: 1.2; cursor: pointer; }
.login .sms-alt-button:hover { background-color: #f4f8fb; }
.login .sms-alt-button .sms-icon { flex: 0 0 auto; }

/* Shared text in the SMS panels */
.login .sms-help { margin: 16px 0 0 0; font-size: 14px; line-height: 1.4; color: #2b2b2b; text-align: center; }
.login .sms-hint { margin-top: 4px; font-size: 12px; color: #2b2b2b; text-align: right; }
.login .sms-timer { margin-top: 8px; font-size: 14px; line-height: 1.3; color: #2b2b2b; text-align: center; }
.login .sms-link,
.login .sms-link-inline,
.login .sms-link-button { color: #1b2f4a; text-decoration: underline; }
.login .sms-link { display: block; margin: 4px 0 10px 0; font-size: 13px; text-align: center; }
.login .sms-link-inline { display: inline-block; margin-right: 6px; font-weight: 600; }
.login #smsPhoneShown { white-space: nowrap; }
.login .sms-link-button { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.login .sms-link:focus-visible,
.login .sms-link-inline:focus-visible,
.login .sms-link-button:focus-visible { outline: 2px solid #1b2f4a; outline-offset: 2px; }
.login .sms-error { margin-top: 10px; padding: 6px 8px; border: 1px solid #d9a0a0; background-color: rgba(255,255,255,0.92); color: #b00020; font-size: 14px; font-weight: 600; line-height: 1.3; text-align: center; }
.login .sms-error:empty { margin: 0; padding: 0; border: 0; }

/* Phone entry: prefix box on the left, number on the right (LTR row) */
.login .sms-phone-row { display: flex; align-items: stretch; margin-top: 16px; border: 1px solid #ccc; background-color: #fff; }
.login .sms-prefix { display: flex; align-items: center; padding: 0 10px; border-right: 1px solid #ddd; background-color: #f3f3f3; color: #24466f; font-size: 14px; white-space: nowrap; }
.login .sms-phone-row input { flex: 1 1 auto; width: auto; min-width: 0; height: 40px; padding: 0 10px; border: 0; background: transparent; color: #24466f; font-size: 18px; text-align: left; }
.login .sms-phone-row:focus-within { box-shadow: 0 0 0 2px #1d6fa0; }
.login .sms-phone-row input:focus { outline: none; }

/* Blue action button (same as .button_big, kept inside the SMS panels) */
.login .sms-primary { width: 100%; max-width: 260px; margin: 14px auto 8px auto; padding: 4px 20px; cursor: pointer; }
.login .sms-primary:disabled,
.login .sms-business:disabled,
.login .sms-alt-button:disabled { opacity: 0.6; cursor: default; }

/* Six single-digit boxes */
.login .sms-digits { display: flex; justify-content: center; gap: 6px; margin-top: 16px; direction: ltr; }
.login .sms-digits input.sms-digit { flex: 1 1 0; width: auto; min-width: 0; max-width: 44px; height: 48px; padding: 0; border: 1px solid #ccc; background-color: #fff; color: #24466f; font-size: 24px; font-weight: 600; text-align: center; }
.login .sms-digits input.sms-digit:focus { outline: none; border-color: #1d6fa0; box-shadow: 0 0 0 2px #1d6fa0; }

/* Business picker */
.login #smsBusinessList { margin-top: 12px; }
.login .sms-business { display: block; width: 100%; margin: 8px 0 0 0; padding: 8px 12px; border: 1px solid #ccc; background-color: #fff; color: #24466f; text-align: right; cursor: pointer; }
.login .sms-business:hover { background-color: #f4f8fb; }
.login .sms-business:focus-visible,
.login .sms-alt-button:focus-visible,
.login .sms-primary:focus-visible { outline: 2px solid #1b2f4a; outline-offset: 2px; }
.login .sms-business-name { display: block; font-size: 16px; font-weight: 600; }
.login .sms-business-place { display: block; font-size: 13px; color: #555; }

@media (max-width: 400px) {
  .login .sms-digits { gap: 4px; }
  .login .sms-digits input.sms-digit { height: 44px; font-size: 22px; }
}
