* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, Arial;
  background: #f4f6f8;
}

.topbar {
  background: #fff;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #ddd;
}

.page-main {
  padding: 24px;
}

/* ЦЕНТРОВКА ЛОГИНА */
.page-auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ШИРОКАЯ КАРТОЧКА ЛОГИНА */
.page-auth .card {
  width: 100%;
  max-width: 380px;
}

.wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1100px;
  margin: auto;
}

.card {
  background: #fff;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
}

.field { 
  margin-bottom: 12px; 
}

label { 
  font-size: 13px; 
  display: block; 
  margin-bottom: 6px; 
}

input, textarea {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 14px;
}

.toolbar { 
  margin: 10px 0; 
}

.toolbtn {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #ddd;
  cursor: pointer;
  background: #fff;
}

.preview {
  margin-top: 12px;
  border: 1px dashed #ccc;
  padding: 10px;
  border-radius: 8px;
}

.preview-box { 
  background:#fafafa;
  padding:10px;
  border-radius:8px; 
}

.actions { 
  margin-top: 12px; 
  display:flex; 
  gap:10px; 
}

.btn { 
  padding:10px 16px;
  border-radius:10px;
  border:none;
  cursor:pointer;
  font-weight:600; 
}

.btn-green { 
  background:#8ab661;
  color:#fff; 
}

.btn-outline-red { 
  background:#fff;
  border:1px solid #f87171;
  color:#b91c1c; 
}

.stats { 
  display:flex; 
  gap:10px; 
}

.stat { 
  flex:1;
  background:#f9fafb;
  border-radius:10px;
  padding:10px;
  text-align:center; 
}

.stat-ok { 
  color:#15803d; 
}

.stat-err { 
  color:#b91c1c; 
}

.progress-bar { 
  background:#e5e7eb;
  height:10px;
  border-radius:6px;
  margin:10px 0; 
}

.progress-fill { 
  height:100%;
  background:#8ab661;
  width:0%;
  border-radius:6px; 
}

.log { 
  background:#f9fafb;
  border-radius:8px;
  padding:8px;
  height:140px;
  overflow:auto;
  font-family:monospace;
  font-size:12px; 
}