.auth-overlay[hidden] { display: none !important; }
.auth-overlay { position: fixed; inset: 0; background: #0a0a0a73; backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; z-index: 10100; padding: 16px; }
.auth-modal { background: #fff; border-radius: 16px; width: 100%; max-width: 400px; padding: 32px 28px 24px; position: relative; box-shadow: 0 20px 50px #00000026; font-family: Montserrat, sans-serif; }
.auth-modal__close { position: absolute; top: 12px; right: 12px; background: none; border: none; color: #9ca3af; cursor: pointer; padding: 6px; border-radius: 8px; display: flex; }
.auth-modal__close:hover { background: #f3f4f6; color: #374151; }
.auth-modal__header { text-align: center; margin-bottom: 24px; }
.auth-modal__logo { margin-bottom: 12px; }
.auth-modal__logo img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }
.auth-modal__title { font-size: 22px; font-weight: 700; color: #111827; margin: 0 0 6px; }
.auth-modal__subtitle { font-size: 14px; color: #6b7280; margin: 0; line-height: 1.4; }
.auth-modal__method-toggle { display: flex; margin-bottom: 16px; border: 1.5px solid #e5e7eb; border-radius: 10px; overflow: hidden; }
.auth-modal__method-btn { flex: 1; padding: 8px 0; border: none; background: #f9fafb; color: #6b7280; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; }
.auth-modal__method-btn--active { background: #3a4e18; color: #fff; }
.auth-modal__form { display: flex; flex-direction: column; gap: 16px; }
.auth-modal__field { display: flex; flex-direction: column; gap: 6px; }
.auth-modal__label { font-size: 13px; font-weight: 600; color: #374151; }
.auth-modal__input-wrap { position: relative; display: flex; align-items: center; }
.auth-modal__input-icon { position: absolute; left: 12px; color: #9ca3af; pointer-events: none; }
.auth-modal__input { width: 100%; padding: 10px 12px 10px 40px; border: 1.5px solid #e5e7eb; border-radius: 10px; font-size: 15px; color: #111827; background: #f9fafb; outline: none; box-sizing: border-box; font-family: inherit; }
.auth-modal__input:focus { border-color: #3a4e18; background: #fff; box-shadow: 0 0 0 3px #00000014; }
.auth-modal__input::placeholder { color: #9ca3af; }
.auth-modal__input--otp { font-size: 24px; font-weight: 700; letter-spacing: .3em; }
.auth-modal__error { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #fef2f2; border: 1px solid #fecaca; border-radius: 10px; color: #dc2626; font-size: 13px; font-weight: 500; }
.auth-modal__terms { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.auth-modal__terms input { width: 18px; height: 18px; margin-top: 1px; accent-color: #3a4e18; flex-shrink: 0; }
.auth-modal__terms span, .auth-modal__notice { font-size: 13px; color: #6b7280; line-height: 1.5; }
.auth-modal__notice { font-size: 12px; color: #9ca3af; text-align: center; margin: 0; }
.auth-modal__terms a, .auth-modal__notice a { color: #3a4e18; font-weight: 600; text-decoration: none; }
.auth-modal__submit { padding: 12px; background: #3a4e18; color: #fff; border: none; border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit; min-height: 44px; }
.auth-modal__submit:hover { background: #394d17; }
.auth-modal__submit:disabled { opacity: .7; cursor: not-allowed; }
.auth-modal__footer { text-align: center; margin-top: 20px; padding-top: 16px; border-top: 1px solid #f3f4f6; font-size: 14px; color: #6b7280; }
.auth-modal__footer button { background: none; border: none; color: #3a4e18; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; padding: 0; }
.auth-modal__footer button:hover { text-decoration: underline; }
.auth-modal__success { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 8px 0 4px; text-align: center; color: #374151; }
.auth-modal [hidden] { display: none !important; }
