:root{
  --pitlog-red:#c22006;
  --pitlog-black:#000000;
  --pitlog-gray:#7a8395;
  --pitlog-bg:#f6f7f9;
  --pitlog-card:#ffffff;
  --pitlog-border:#d1d5db;
  --pitlog-text:#111111;
}

*{box-sizing:border-box}
html,body{max-width:100%;overflow-x:hidden}
body{
  margin:0;
  background:var(--pitlog-bg);
  color:var(--pitlog-text);
  font-family:Arial,sans-serif;
}
body.public-body{min-height:100vh;background:var(--pitlog-bg)}
a{text-decoration:none;color:inherit}
img{max-width:100%;height:auto}

.app-shell{display:block;min-height:100vh}
.content{padding:0}

.auth-screen-wrap{
  min-height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:24px 16px;
}
.auth-brand{
  width:220px;
  margin:0 auto 20px;
}
.auth-brand-login img{
  display:block;
  width:100%;
  height:auto;
}
.auth-card{
  width:394px;
  max-width:100%;
  min-height:470px;
  background:var(--pitlog-card);
  border:1px solid var(--pitlog-border);
  border-radius:18px;
  padding:24px 20px 18px;
  box-shadow:0 10px 26px rgba(0,0,0,.08);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.auth-heading-centered{
  text-align:center;
  margin-bottom:18px;
}
.auth-heading-centered h1{
  margin:0 0 6px;
  font-size:22px;
  line-height:1.2;
}
.auth-subtitle{
  color:var(--pitlog-red);
  font-size:17px;
  font-weight:800;
  line-height:1.2;
}
.auth-form{width:100%}
label{
  font-weight:700;
  font-size:14px;
  display:block;
  margin-bottom:6px;
}
.input{
  width:100%;
  padding:11px 12px;
  border-radius:10px;
  border:1px solid var(--pitlog-border);
  background:#fff;
  margin-bottom:14px;
  font-size:14px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:none;
  cursor:pointer;
  border-radius:10px;
  padding:10px 14px;
  min-height:42px;
  font-weight:700;
  font-size:14px;
}
.btn:hover{opacity:.96}
.btn-block{width:100%}
.btn-half{flex:1 1 0}
.btn{background:var(--pitlog-red);color:#fff}
.btn-gray{background:var(--pitlog-gray);color:#fff}
.btn-outline{
  background:#fff;
  color:var(--pitlog-red);
  border:2px solid var(--pitlog-red);
}

.auth-submit{margin-top:6px}
.auth-actions{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:center;
}
.auth-actions-under-submit{margin-top:10px}

.display-code{
  font-size:30px;
  letter-spacing:8px;
  text-align:center;
  padding:14px 16px;
  border-radius:12px;
  background:#fff;
  border:1px solid var(--pitlog-border);
  margin-bottom:12px;
}
.keypad{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
.keypad-btn{
  font-size:22px;
  font-weight:700;
  padding:14px;
  border:1px solid #d5dae0;
  border-radius:12px;
  background:#fff;
  color:#111;
  cursor:pointer;
}
.keypad-btn-ok{
  background:var(--pitlog-red);
  border-color:var(--pitlog-red);
  color:#fff;
}
.keypad-btn-clear{
  background:#eceff3;
  border-color:#eceff3;
  color:#475569;
}

.pitlog-footer{
  width:100%;
  text-align:center;
  font-size:12px;
  line-height:1.4;
}
.pitlog-footer-auth{
  margin-top:14px;
  color:#475569;
}

.alert { padding: 12px 14px; border-radius: 10px; margin: 16px auto 0; max-width:394px; }
.alert-success { background: #dcfce7; color: #166534; }
.alert-danger { background: #fee2e2; color: #991b1b; }
.alert-info { background: #dbeafe; color: #1d4ed8; }

@media (max-width:640px){
  .auth-card{
    width:100%;
    min-height:auto;
    padding:18px 16px;
    border-radius:18px;
  }
  .auth-actions{
    flex-direction:column;
    align-items:stretch;
  }
  .auth-actions .btn{
    width:100%;
    flex:1 1 auto;
  }
  .display-code{
    font-size:26px;
    letter-spacing:6px;
  }
}
