:root {
  --primary-color: #1F1F4E;
  --accent-color: #CBB88B;
  --background-color: #F3F3F9;
  --text-color: #1F1F4E;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--primary-color);
  font-family: "Segoe UI", sans-serif;
  padding: 1rem;
  box-sizing: border-box;
}

.card {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  width: 350px;
  max-width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
  justify-content: center;
}

.logo-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.site-title {
  margin: 0;
  font-size: 1.4rem;
  color: var(--primary-color);
}

.tagline {
  margin: 0;
  font-size: 0.85rem;
  color: #666;
}

/* Role Selector */
.role-selector {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.role-selector input[type="radio"] {
  display: none;
}

.role-selector label {
  flex: 1;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--primary-color);
  background: #fff;
  color: var(--primary-color);
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
  user-select: none;
}

.role-selector input[type="radio"]:checked + label {
  background: var(--accent-color);
  color: #fff;
  border-color: var(--accent-color);
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.forms .form {
  display: none;
}

#student-tab:checked ~ .forms #student,
#admin-tab:checked ~ .forms #admin,
#company-tab:checked ~ .forms #company {
  display: block;
}

.form label {
  font-size: 0.9rem;
  font-weight: 600;
  display: block;
  margin: 0.5rem 0 0.2rem;
  text-align: left;
}

.form input, .form select {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  box-sizing: border-box;
}

.form input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 5px rgba(203, 184, 139, 0.5);
  outline: none;
}

.form button {
  width: 100%;
  padding: 0.7rem;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.form button:hover {
  background: #2a2a70;
}

.links {
  text-align: center;
  font-size: 0.85rem;
}

.links a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

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

/* Responsive Design */
@media (max-width: 480px) {
  .card {
    padding: 1.5rem;
  }

  .site-title {
    font-size: 1.2rem;
  }

  .tagline {
    font-size: 0.8rem;
  }

  .role-selector label {
    padding: 0.5rem 0.6rem;
    font-size: 0.85rem;
  }

  .form button {
    padding: 0.6rem;
    font-size: 0.95rem;
  }
}


@media (max-width: 360px) {
  .role-selector {
    flex-direction: column;
    gap: 8px;
  }

  .role-selector label {
    width: 100%;
    text-align: center;
  }

  .card {
    padding: 1rem;
  }
}