* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

:root {
  --primary-blue: #007bff;
  --dark-blue: #045aaf;
  --success-green: #4caf50;
  --light-bg: #f8f9fa;
  --white: #ffffff;
  --text-dark: #333;
  --text-light: #666;
}

body {
  background: linear-gradient(to bottom right, #f4f8ff, #e9f3ff);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

nav {
  background-color: var(--primary-blue);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 80px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.5px;
}

.logo-bachelor,
.logo-life {
  color: #fff;
}

.nav-links a {
  color: white;
  text-decoration: none;
  margin-left: 25px;
  font-weight: 700;
  transition: 0.3s;
}

.nav-links a:hover {
  color: var(--success-green);
}

.login-btn {
  background-color: var(--primary-blue);
  padding: 8px 16px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 700;
  color: white;
}

.login-btn:hover {
  background-color: #1e4ed8;
}

.login-container {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 120px);
  padding: 40px 20px;
}

.login-box {
  background-color: white;
  width: 380px;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.login-box .icon {
  font-size: 45px;
  color: #1e90ff;
  margin-bottom: 15px;
}

.login-box h2 {
  color: #153e90;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 5px;
}

.login-box p {
  color: #666;
  font-size: 14px;
  margin-bottom: 30px;
}

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

.input-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 5px;
  color: #333;
}

.input-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  outline: none;
}

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

.btn {
  width: 100%;
  background-color: var(--primary-blue);
  border: none;
  color: white;
  padding: 10px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s;
}

.btn:hover {
  background-color: #1e4ed8;
}

.signup-text {
  margin-top: 15px;
  color: #555;
  font-size: 14px;
}

.signup-text a {
  color: #2563eb;
  font-weight: 500;
  text-decoration: none;
}

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

footer {
  text-align: center;
  padding: 15px;
  background: var(--primary-blue);
  color: white;
  animation: fadeInUp 1.2s ease-in both;
}

footer a {
  text-decoration: none;
  color: var(--white);
}

footer a:hover {
  color: var(--success-green);
}

/* --- Tablet Devices (max-width: 1024px) --- */
@media (max-width: 1024px) {

  .container,
  nav,
  .navbar,
  header {
    padding: 15px 30px !important;
  }
}

/* --- Mobile Devices (max-width: 768px) --- */
@media (max-width: 768px) {

  nav,
  .navbar,
  header,
  .navbar-content {
    flex-direction: column;
    text-align: center;
    gap: 15px;
    height: auto !important;
  }

  .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .nav-links a {
    margin-left: 10px !important;
    margin-right: 10px !important;
    font-size: 14px;
  }

  .login-box,
  .form-card,
  .contact {
    width: 95% !important;
    max-width: none !important;
    padding: 25px !important;
    margin: 20px auto !important;
  }
}

.role-selection-group {
  margin-bottom: 25px;
  text-align: left;
}

.role-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #153e90;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tab-buttons {
  display: flex;
  gap: 12px;
  width: 100%;
}

.tab {
  flex: 1;
  padding: 12px;
  cursor: pointer;
  border: 2px solid #e2e8f0;
  background: white;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #64748b;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.tab.active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #2563eb;
  box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.1);
}