/* Core Page Layout & Dark Theme Setup */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #050b14;
  color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header & Navbar */
.description {
  background-color: #090977;
  color: #ffffff;
  font-size: clamp(0.7rem, 2vw, 0.78rem);
  font-weight: 600;
  padding: 8px 12px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-pill {
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid #3b82f6;
  padding: 2px 8px;
  border-radius: 12px;
  margin-right: 6px;
  color: #60a5fa;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px clamp(12px, 3vw, 24px);
  background-color: #060e1b;
  border-bottom: 1px solid #0f223d;
  gap: 12px;
}

.brand-name {
  padding: 6px 14px;
  font-weight: 700;
  font-size: clamp(0.75rem, 2vw, 0.95rem);
  color: #ffffff;
  text-decoration: none;
  border: 1.5px solid #3b82f6;
  border-radius: 25px;
  background: rgba(59, 130, 246, 0.1);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.3);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: clamp(10px, 2vw, 18px);
}

.nav-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: clamp(0.75rem, 1.8vw, 0.88rem);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #60a5fa;
}

/* Login Wrapper */
.login-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 5vw, 40px) 16px;
}

/* Login Card - Blue Indigo Accent */
.auth-card {
  background: #091527;
  border: 1px solid #1d4ed8;
  border-radius: 12px;
  width: 100%;
  max-width: 420px;
  padding: clamp(20px, 5vw, 30px);
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.15);
}

/* Role Switcher Tabs */
.auth-tabs {
  display: flex;
  background: #050b14;
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 20px;
  border: 1px solid #1e3a8a;
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 10px 6px;
  font-size: clamp(0.78rem, 2vw, 0.85rem);
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tab-btn.active {
  background: #3b82f6;
  color: #ffffff;
}

.auth-header h2 {
  margin: 0 0 6px 0;
  font-size: clamp(1.25rem, 4vw, 1.4rem);
  color: #ffffff;
}

.auth-header p {
  margin: 0 0 20px 0;
  font-size: clamp(0.8rem, 2vw, 0.85rem);
  color: #94a3b8;
}

/* Form Controls */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  color: #93c5fd;
  margin-bottom: 6px;
  font-weight: 600;
}

/* Password Field Wrapper & Show/Hide Toggle Styles */
.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password-wrapper .form-input {
  padding-right: 55px; /* Leave space so text doesn't overlap button */
}

.toggle-password-btn {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s ease;
}

.toggle-password-btn:hover {
  color: #60a5fa;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  background: #050b14;
  border: 1px solid #1e3a8a;
  border-radius: 6px;
  color: #ffffff;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
}

.submit-btn {
  width: 100%;
  padding: 13px;
  background: #3b82f6;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  margin-top: 10px;
  transition: background-color 0.2s;
}

.submit-btn:hover {
  background-color: #2563eb;
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 0.85rem;
  color: #94a3b8;
}

.auth-footer a {
  color: #60a5fa;
  text-decoration: none;
  font-weight: 600;
}

.site-footer {
  background: #040810;
  border-top: 1px solid #0f223d;
  padding: 15px;
  text-align: center;
  color: #64748b;
  font-size: 0.8rem;
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
  .nav-links {
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }
}