#auth .auth-provider,#auth .auth-telegram{display:flex;align-items:center;justify-content:center;gap:12px;min-height:44px;height:48px;border-radius:10px;margin:0 0 10px;font-weight:500;letter-spacing:.15px}
#auth .auth-provider-google{background:#fff;color:#1f1f1f;border:1px solid #747775}
#auth .auth-provider-yandex{background:#fff;color:#000;border:1px solid #747775}
#auth .auth-provider svg{flex-shrink:0}
#auth .auth-code{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;margin:28px 0 18px}
#auth .auth-code input{width:100%;min-width:0;padding:4px;text-align:center;font-size:25px;height:54px}
#auth .auth-email-address{overflow-wrap:anywhere}
#auth .auth-form-panel{min-width:0}
.auth-methods{margin-top:22px}.auth-method{display:flex;gap:14px;align-items:center;justify-content:space-between;padding:18px 0;border-bottom:1px solid #ffffff18}.auth-method-name{display:flex;gap:12px;align-items:center;min-width:0}.auth-method-name svg{width:22px;height:22px;flex-shrink:0}.auth-method-name small{display:block;color:var(--muted);overflow-wrap:anywhere;margin-top:5px}.auth-method button{flex-shrink:0}.auth-methods #telegram-connect-widget{margin:20px 0}.auth-settings{max-width:820px}.auth-settings .card{margin-bottom:22px}.auth-settings h3{display:flex;align-items:center;gap:10px}.auth-settings input:not([type=checkbox]),.auth-settings select{max-width:100%;margin-bottom:12px}.auth-setting-switch{display:flex;align-items:center;gap:12px;padding:10px 0}.auth-setting-switch input{width:20px;height:20px;margin:0;accent-color:var(--lime)}.auth-copy-row{display:flex;gap:8px;align-items:start}.auth-copy-row input{min-width:0}.auth-verify-banner{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:12px 24px}
@media(max-width:540px){.auth-method{align-items:flex-start;flex-direction:column}.auth-method button{width:100%}.auth-copy-row{flex-direction:column}.auth-verify-banner{flex-direction:column;align-items:stretch;margin:10px}.auth-settings .card{padding:18px}#auth .auth-code{gap:5px}}

.auth-methods h2{font-size:22px}.auth-settings select{width:100%;display:block}

.auth-settings #mail-log-entries{min-width:0;max-width:100%}.auth-settings #mail-log-entries .table-wrap{max-width:100%;overflow-x:auto}.auth-settings #mail-log-entries table{min-width:680px}.auth-settings #mail-log-entries td:nth-child(4){width:40%;overflow-wrap:anywhere}.auth-settings #smtp-connection-status,.auth-settings #mail-test-status{overflow-wrap:anywhere}

/* Keep recipient, time and failure reason readable on phones without table scrolling. */
@media(max-width:640px){
 .auth-settings #mail-log-entries table{min-width:0;width:100%}
 .auth-settings #mail-log-entries thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .auth-settings #mail-log-entries tbody,.auth-settings #mail-log-entries tr{display:block;width:100%}
 .auth-settings #mail-log-entries tr{padding:14px 0;border-bottom:1px solid #ffffff18}
 .auth-settings #mail-log-entries td,.auth-settings #mail-log-entries td:nth-child(4){display:block;width:100%;padding:5px 0;border:0;white-space:normal;overflow-wrap:anywhere}
 .auth-settings #mail-log-entries td::before{content:attr(data-label) ": ";color:var(--muted)}
 .auth-settings #mail-log-entries td[data-label="Причина"]:empty{display:none}
}
