* {
  box-sizing: border-box;
}

:root {
  --prim: #0ea5e9;
  --sec: #0369a1;
  --card: #ffffff;
  --txt: #1e293b;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(135deg, var(--prim), var(--sec));
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-panel {
  background: var(--card);
  width: 100%;
  max-width: 420px;
  border-radius: 18px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
  padding: 30px 28px;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-panel h1 {
  margin: 0 0 10px;
  text-align: center;
  color: var(--sec);
}

.login-panel p {
  text-align: center;
  color: #555;
  margin-bottom: 20px;
}

.roles {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.role-card {
  flex: 1;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  cursor: pointer;
  transition: 0.25s;
}

.role-card input {
  display: none;
}

.role-card span {
  display: block;
  font-size: 15px;
  font-weight: bold;
  color: var(--txt);
}

.role-card small {
  color: #666;
  font-size: 13px;
}

.role-card:hover {
  border-color: var(--prim);
}

.role-card.active {
  border-color: var(--prim);
  background: #e0f2fe;
}

label {
  font-weight: bold;
  display: block;
  margin-top: 14px;
}

input {
  width: 100%;
  padding: 12px;
  margin-top: 6px;
  border-radius: 10px;
  border: 2px solid #d1d5db;
  font-size: 15px;
}

input:focus {
  outline: none;
  border-color: var(--prim);
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2);
}

.hidden {
  display: none;
}

.show-pass {
  margin-top: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

button {
  width: 100%;
  margin-top: 22px;
  padding: 14px;
  background: var(--prim);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.25s;
}

button:hover {
  background: #0284c7;
}

.links {
  margin-top: 18px;
  text-align: center;
}

.links a {
  color: var(--sec);
  text-decoration: none;
  font-size: 14px;
}

.links a:hover {
  text-decoration: underline;
}

.msg {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 14px;
  font-size: 14px;
}
