/* Tohfe Auth V4 — hybrid account modal. Scoped .tohfe-auth-*, matches UI v2 tokens. */
.tohfe-auth { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 16px; }
.tohfe-auth[hidden] { display: none; }
.tohfe-auth-backdrop { position: absolute; inset: 0; background: rgba(20, 30, 22, 0.55); backdrop-filter: blur(2px); }
.tohfe-auth-dialog { position: relative; width: 100%; max-width: 420px; max-height: 92vh; overflow-y: auto; background: #fff; border-radius: 16px; box-shadow: 0 18px 50px rgba(20, 40, 25, 0.28); padding: 24px 22px 26px; font-family: inherit; direction: rtl; text-align: right; }
.tohfe-auth-close { position: absolute; top: 10px; left: 12px; width: 34px; height: 34px; border: 0; background: #f2efe7; color: #4a5548; border-radius: 50%; font-size: 18px; line-height: 1; cursor: pointer; }
.tohfe-auth-close:hover { background: #e8e3d6; }

.tohfe-auth-tabs { display: flex; gap: 6px; background: #f2efe7; border-radius: 12px; padding: 4px; margin-bottom: 18px; }
.tohfe-auth-tab { flex: 1; border: 0; background: transparent; padding: 10px 0; border-radius: 9px; font: inherit; font-weight: 600; color: #6b7268; cursor: pointer; transition: all .15s; }
.tohfe-auth-tab.is-active { background: #1D4A2E; color: #fff; box-shadow: 0 2px 8px rgba(29, 74, 46, .25); }

.tohfe-auth-title { margin: 0 0 6px; font-size: 17px; font-weight: 700; color: #22301f; }
.tohfe-auth-sub { margin: 0 0 14px; font-size: 13px; color: #6b7268; line-height: 1.7; }
.tohfe-auth-label { display: block; margin: 12px 0 6px; font-size: 13px; font-weight: 600; color: #3c463b; }
.tohfe-auth-input { width: 100%; box-sizing: border-box; border: 1.5px solid #ddd6c6; border-radius: 10px; padding: 11px 13px; font: inherit; font-size: 15px; background: #fffdf8; color: #22301f; transition: border-color .15s; }
.tohfe-auth-input:focus { outline: none; border-color: #1D4A2E; box-shadow: 0 0 0 3px rgba(29, 74, 46, .12); }
.tohfe-auth-code { letter-spacing: .45em; text-align: center; font-size: 20px; font-weight: 700; }
.tohfe-auth-pw { position: relative; }
.tohfe-auth-pw .tohfe-auth-input { padding-left: 44px; }
.tohfe-auth-eye { position: absolute; left: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; font-size: 17px; cursor: pointer; padding: 6px; border-radius: 8px; }
.tohfe-auth-eye:hover { background: #f2efe7; }

.tohfe-auth-btn { display: block; width: 100%; margin-top: 16px; border: 0; border-radius: 10px; padding: 12px; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; transition: all .15s; }
.tohfe-auth-btn.is-primary { background: #1D4A2E; color: #fff; }
.tohfe-auth-btn.is-primary:hover { background: #173d25; }
.tohfe-auth-btn.is-secondary { background: #fff; color: #1D4A2E; border: 1.5px solid #1D4A2E; }
.tohfe-auth-btn.is-secondary:hover { background: #f2f7f0; }
.tohfe-auth-btn:disabled { opacity: .55; cursor: not-allowed; }
.tohfe-auth-btn.is-loading::after { content: ' …'; }

.tohfe-auth-link { border: 0; background: none; color: #1D4A2E; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; padding: 4px 0; text-decoration: underline; text-underline-offset: 3px; }
.tohfe-auth-link:hover { color: #173d25; }
.tohfe-auth-row { display: flex; justify-content: space-between; margin-top: 12px; }
.tohfe-auth-divider { display: flex; align-items: center; gap: 10px; margin: 16px 0 2px; color: #9aa093; font-size: 12px; }
.tohfe-auth-divider::before, .tohfe-auth-divider::after { content: ''; flex: 1; height: 1px; background: #e6e1d2; }
.tohfe-auth-switch { margin: 18px 0 0; text-align: center; font-size: 13px; color: #6b7268; }
.tohfe-auth-terms { margin: 10px 2px 0; font-size: 11.5px; color: #8a9086; line-height: 1.7; }
.tohfe-auth-terms a { color: #1D4A2E; }

.tohfe-auth-steps { display: flex; gap: 4px; margin: 4px 0 10px; }
.tohfe-auth-steps span { font-size: 11px; color: #a5ab9f; background: #f2efe7; padding: 4px 10px; border-radius: 999px; }
.tohfe-auth-steps span.is-on { color: #fff; background: #1D4A2E; font-weight: 600; }

.tohfe-auth-status { min-height: 18px; margin: 10px 2px 0; font-size: 12.5px; color: #b85c38; }
.tohfe-auth-status.is-error { color: #b3261e; }
.tohfe-auth-status.is-info { color: #6b7268; }
.tohfe-auth-strength { min-height: 16px; margin: 8px 2px 0; font-size: 12px; }
.tohfe-auth-strength.is-weak { color: #b3261e; }
.tohfe-auth-strength.is-mid { color: #b8860b; }
.tohfe-auth-strength.is-strong { color: #1D4A2E; }

@media (max-width: 480px) {
	.tohfe-auth-dialog { max-width: 100%; padding: 20px 16px 22px; border-radius: 14px; }
}
