/* =============================================================
   CRM Bots — Login & Auth pages
   ============================================================= */

:root {
    --navy:#0A1628; --aqua:#0EA5C8; --aqua-l:#E0F6FB;
    --bg:#F4F6F9; --card:#fff; --line:#E2E8F0;
    --muted:#64748B; --text:#0F172A; --red:#DC2626; --red-l:#FEF2F2;
    --green:#059669; --green-l:#ECFDF5;
}

*{box-sizing:border-box;margin:0;padding:0}
body{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;background:var(--bg);color:var(--text);min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px}

.wrap{width:100%;max-width:400px}

.logo{text-align:center;margin-bottom:32px;display:flex;align-items:center;justify-content:center;gap:12px}
.logo-icon{width:44px;height:44px;background:var(--navy);border-radius:12px;display:flex;align-items:center;justify-content:center}
.logo-icon svg{width:24px;height:24px;fill:var(--aqua)}
.logo-text .name{font-size:20px;font-weight:800;color:var(--navy);letter-spacing:-.4px;line-height:1}
.logo-text .sub{font-size:12px;color:var(--muted);margin-top:2px}

.card{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:36px 32px;box-shadow:0 4px 24px rgba(10,22,40,.08)}
.card h1{font-size:21px;font-weight:800;color:var(--navy);margin-bottom:6px;letter-spacing:-.3px}
.card p{font-size:14px;color:var(--muted);line-height:1.6;margin-bottom:24px}

label{display:block;font-size:13px;font-weight:600;color:var(--navy);margin-bottom:6px}
input{width:100%;padding:11px 13px;border:1.5px solid var(--line);border-radius:8px;font-size:15px;color:var(--text);background:#fff;outline:none;font-family:inherit;transition:border-color .15s}
input:focus{border-color:var(--aqua)}

.field{margin-bottom:14px}

.btn{width:100%;padding:12px;background:var(--navy);color:#fff;border:none;border-radius:8px;font-size:15px;font-weight:700;cursor:pointer;margin-top:8px;transition:background .15s;font-family:inherit;letter-spacing:-.1px}
.btn:hover{background:#14223A}

.alert{margin-top:16px;padding:12px 14px;border-radius:8px;font-size:13px;line-height:1.5}
.alert.ok{background:var(--aqua-l);color:#065F79;border:1px solid #A5DDE9}
.alert.err{background:var(--red-l);color:var(--red);border:1px solid #FECACA}

.dev-banner{background:#FFFBEB;border:1px solid #FDE68A;border-radius:8px;padding:10px 14px;margin-bottom:20px;font-size:12px;color:#92400E;display:flex;align-items:center;gap:8px}

.hint{margin-top:18px;text-align:center;font-size:12px;color:var(--muted)}

.dot-pulse{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--aqua);margin-right:6px;vertical-align:middle;animation:pulse 1.5s ease-in-out infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.4}}

/* ---- Auth page additions ---- */
.auth-card{background:#fff;border:1px solid #E2E8F0;border-radius:14px;padding:44px 36px;max-width:360px;width:100%;text-align:center;box-shadow:0 4px 24px rgba(10,22,40,.08)}
.auth-icon{width:54px;height:54px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;margin-bottom:18px}
.auth-icon.err{background:#FEF2F2}
.auth-icon.spin-wrap{background:#E0F6FB}
.auth-icon svg{width:24px;height:24px}
.auth-h2{font-size:19px;font-weight:800;color:#0A1628;margin-bottom:8px}
.auth-p{font-size:14px;color:#64748B;line-height:1.6;margin-bottom:18px}
.auth-a{color:#0EA5C8;font-weight:600;text-decoration:none}
.spinner{width:26px;height:26px;border:2.5px solid rgba(14,165,200,.2);border-top-color:#0EA5C8;border-radius:50%;animation:spin .7s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
