* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Tahoma, Arial, sans-serif;
}

.login-page {
  min-height: 100vh;
  background-image: url("../images/bg.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-right: 8%;
}

.login-box {
  width: 430px;
  min-height: 610px;
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 34px;
  padding: 42px 38px;
  text-align: center;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
}

.logo {
  width: 95px;
  height: 95px;
  object-fit: contain;
  margin-bottom: 15px;
}

h1 {
  margin: 0;
  font-size: 42px;
  color: #27364a;
  font-weight: 900;
}

.login-box p {
  margin: 12px 0 28px;
  color: #64748b;
  font-size: 16px;
}

input {
  width: 100%;
  height: 58px;
  margin-bottom: 16px;
  padding: 0 20px;
  border-radius: 16px;
  border: 2px solid #e2e8f0;
  background: white;
  font-size: 16px;
  outline: none;
  text-align: right;
}

input:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 5px rgba(96, 165, 250, 0.18);
}

h3 {
  margin: 14px 0 18px;
  color: #334155;
  font-size: 20px;
}

.roles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.roles button {
  height: 60px;
  border-radius: 16px;
  border: 2px solid #bfdbfe;
  background: white;
  color: #2563eb;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.25s;
}

.roles button:first-child {
  border-color: #bfdbfe;
  color: #2563eb;
}

.roles button:nth-child(2) {
  border-color: #bbf7d0;
  color: #16a34a;
}

.roles button:hover {
  transform: translateY(-4px);
}

.roles button.active {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
}

.roles button:nth-child(2).active {
  background: #16a34a;
  color: white;
  border-color: #16a34a;
}

.login-btn {
  width: 100%;
  height: 64px;
  margin-top: 28px;
  border: none;
  border-radius: 18px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: white;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.25s;
}

.login-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 35px rgba(37, 99, 235, 0.3);
}

.note {
  display: block;
  margin-top: 22px;
  color: #94a3b8;
  font-size: 16px;
}

#message {
  min-height: 24px;
  margin-top: 10px;
  color: #dc2626;
  font-weight: bold;
}

@media (max-width: 900px) {
  .login-page {
    justify-content: center;
    padding: 25px;
  }

  .login-box {
    width: 100%;
    max-width: 430px;
  }
}
.toast {
  position: fixed;
  top: 25px;
  left: 25px;
  background: #0f2d5c;
  color: white;
  padding: 14px 22px;
  border-radius: 16px;
  font-weight: bold;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.25);
  opacity: 0;
  transform: translateY(-15px);
  pointer-events: none;
  transition: 0.3s;
  z-index: 9999;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.success {
  background: #16a34a;
}

.toast.error {
  background: #ef4444;
}

.toast.warning {
  background: #f59e0b;
}