:root {
  --primary: #4361ee;
  --primary-hover: #3f37c9;
  --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  --glass: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(255, 255, 255, 0.3);
  --text-main: #2b2d42;
  --text-muted: #8d99ae;
  --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

* {
  box-sizing: border-box;
  transition: all 0.3s ease;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
}

/* HEADER - Sleek & Floating */
header {
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--primary);
  padding: 15px 40px;
  font-size: 22px;
  font-weight: 800;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-actions {
  display: flex;
  gap: 12px;
}

.header-actions a, .header-actions button {
  background: transparent;
  color: var(--primary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border: 1.5px solid var(--primary);
  border-radius: 12px;
  cursor: pointer;
}

.header-actions a:hover, .header-actions button:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

/* CONTAINER */
.container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  min-height: calc(100vh - 120px);
}

/* THE BOX - Glassmorphism Card */
.box {
  background: var(--glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 40px;
  border-radius: 24px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 420px;
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

h2 {
  font-size: 28px;
  margin-bottom: 30px;
  color: var(--primary);
  letter-spacing: -0.5px;
}

h3 {
  font-size: 18px;
  margin-top: 25px;
  color: var(--text-main);
  text-align: left;
}

/* ROLE SELECTOR - Modern Toggle Look */
.role-select {
  background: #f0f2f5;
  padding: 5px;
  border-radius: 15px;
  display: flex;
  margin-bottom: 25px;
}

.role-select button {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 12px;
  background: transparent;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}

.role-select button.active {
  background: white;
  color: var(--primary);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* INPUTS - Clean & Focus-driven */
input {
  width: 100%;
  padding: 14px 18px;
  margin-bottom: 15px;
  border-radius: 12px;
  border: 2px solid #eef2f3;
  font-size: 15px;
  outline: none;
  background: #fdfdfd;
}

input:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.1);
}

/* BUTTONS - Gradient & Depth */
.btn {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  margin-top: 10px;
  box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(67, 97, 238, 0.4);
}

.btn:active {
  transform: translateY(0);
}

/* TABLES - Modern & Minimal */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 20px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #eee;
}

th {
  background: #f8f9fa;
  padding: 12px;
  font-size: 13px;
  text-transform: uppercase;
  color: var(--text-muted);
}

td {
  padding: 14px;
  border-top: 1px solid #eee;
  font-size: 15px;
}

/* FOOTER */
footer {
  background: transparent;
  color: var(--text-muted);
  padding: 20px;
  text-align: center;
  font-size: 13px;
  position: relative;
}

hr {
  border: 0;
  border-top: 1px solid #eee;
  margin: 30px 0;
}