* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #0f172a;
  color: #e2e8f0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.card {
  background: #1e293b;
  border-radius: 16px;
  padding: 2rem;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

h1 { font-size: 1.4rem; }

.logout {
  color: #94a3b8;
  font-size: 0.85rem;
  text-decoration: none;
}
.logout:hover { color: #e2e8f0; }

.caller-id {
  color: #94a3b8;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

input[type="tel"],
input[type="password"] {
  width: 100%;
  padding: 0.9rem 1rem;
  font-size: 1.25rem;
  border: 1px solid #334155;
  border-radius: 10px;
  background: #0f172a;
  color: #e2e8f0;
  margin-bottom: 1rem;
  text-align: center;
}
input:focus { outline: 2px solid #38bdf8; border-color: transparent; }

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.keypad button {
  padding: 0.9rem 0;
  font-size: 1.2rem;
  border: none;
  border-radius: 10px;
  background: #334155;
  color: #e2e8f0;
  cursor: pointer;
}
.keypad button:hover { background: #475569; }
.keypad button:active { background: #38bdf8; color: #0f172a; }

.actions { display: flex; gap: 0.6rem; }

.actions button,
button.primary {
  flex: 1;
  padding: 0.9rem;
  font-size: 1.05rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

button.primary { background: #22c55e; color: #052e16; width: 100%; }
button.primary:hover { background: #4ade80; }

button.danger { background: #ef4444; color: #fff; }
button.danger:hover { background: #f87171; }

.status {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: #94a3b8;
  min-height: 1.2em;
}
.status.ok { color: #4ade80; }
.status.error { color: #f87171; }

.login-card h1 { text-align: center; margin-bottom: 1.25rem; }
.error { color: #f87171; text-align: center; margin-bottom: 0.75rem; }
