:root{
  --bg:#f6f4ef;
  --card:#ffffff;
  --text:#2b2b2b;
  --muted:#6e6e6e;
  --border:#d9d3c8;
  --accent:#7a1e1e;
  --accent2:#5e1717;
  --shadow: 0 10px 30px rgba(0,0,0,.18);
}

*{box-sizing:border-box}

body{
  margin:0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.wrap{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
}

.card{
  width:min(420px, 100%);
  background: var(--card);
  border:1px solid var(--border);
  border-radius:14px;
  box-shadow: var(--shadow);
  overflow:hidden;
}

.head{
  display:flex;
  gap:14px;
  align-items:center;
  padding:22px 22px 10px;
}

.logo{
  width:64px;
  height:64px;
  border-radius:12px;
  border:1px solid var(--border);
  background:#fff;
  padding:8px;
  object-fit:contain;
}

h1{
  margin:0;
  font-size:18px;
  color: var(--accent);
}

.subtitle{
  margin:6px 0 0;
  font-size:13px;
  color: var(--muted);
  line-height:1.35;
}

.form{
  padding: 14px 22px 18px;
}

label{
  display:block;
  font-size:13px;
  margin:10px 0 6px;
  color: var(--muted);
}

input[type="text"],
input[type="password"]{
  width:100%;
  padding:11px 12px;
  border-radius:10px;
  border:1px solid var(--border);
  font-size:14px;
}

input:focus{
  border-color: rgba(122,30,30,.65);
  outline:none;
  box-shadow: 0 0 0 4px rgba(122,30,30,.12);
}

.btn{
  width:100%;
  margin-top:14px;
  padding:12px 12px;
  border-radius:10px;
  border:0;
  cursor:pointer;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size:14px;
}

.btn:hover{ background: var(--accent2); }

.foot{
  padding: 14px 22px;
  border-top:1px solid var(--border);
  display:flex;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  font-size:12px;
}

.foot a{ color: var(--accent); text-decoration:none; }
.foot a:hover{ text-decoration:underline; }

.muted{ color: var(--muted); }
