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

body {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  padding: 20px;
}

.container {
  width: 100%;
  display: flex;
  justify-content: center;
}

.card {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 48px 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  text-align: center;
}

.logo {
  font-size: 48px;
  margin-bottom: 16px;
}

.title {
  color: #f1f0ff;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.subtitle {
  color: #a78bfa;
  font-size: 0.95rem;
  margin-bottom: 32px;
}

.form {
  text-align: left;
}

.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  color: #c4b5fd;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.input-group input {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: #f1f0ff;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border 0.2s;
}

.input-group input:focus {
  border-color: #a78bfa;
}

.input-group input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.error-msg {
  color: #f87171;
  font-size: 0.85rem;
  margin-bottom: 16px;
  min-height: 20px;
  text-align: center;
}

.btn-primary {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
  margin-bottom: 20px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.toggle-text {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.toggle-text a {
  color: #a78bfa;
  font-weight: 600;
  text-decoration: none;
}

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

/* Dashboard */
.dashboard {
  text-align: center;
}

.avatar {
  font-size: 60px;
  margin-bottom: 16px;
}

.dashboard h2 {
  color: #f1f0ff;
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.dashboard p {
  color: #a78bfa;
  font-size: 0.95rem;
  margin-bottom: 32px;
}

.btn-logout {
  padding: 12px 32px;
  background: transparent;
  border: 2px solid #a78bfa;
  border-radius: 12px;
  color: #a78bfa;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-logout:hover {
  background: #a78bfa;
  color: #fff;
}