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

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

/* START: Green color variable for consistency */
:root {
  --logo-green: #27ae60; /* Updated to a different professional green (Medium Sea Green) */
  --light-green-hover: #2ecc71; /* Updated to a lighter different green for hover/selection (Emerald) */
  /* Added a new variable for the professional grey button */
  --professional-grey: #5a6268;
  --professional-grey-dark: #343a40;
  --professional-grey-light: #868e96;
}

/* END: Green color variable for consistency */
.login-container {
  background: #ffffff;
  border-radius: 20px;
  padding: 2.5rem; /* Reduced padding for smaller height */
  width: 100%;
  max-width: 400px; /* Reduced max-width for smaller width */
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1), 0 10px 25px rgba(0, 0, 0, 0.05),
    inset 0 2px 4px rgba(255, 255, 255, 0.9),
    inset 0 -2px 4px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
}

.login-container::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(145deg, #ffffff, #e6e6e6);
  border-radius: 22px;
  z-index: -1;
}

.brand-section {
  text-align: center;
  margin-bottom: 2rem; /* Adjusted margin for smaller height */
}

/* START: Logo and Project Name Update Styling */
.logo-container {
  margin: 0 auto 1.2rem; /* Adjusted margin */
}

.learnroom-logo {
  width: 100px; /* Slightly smaller logo */
  height: 100px; /* Slightly smaller logo */
  border-radius: 15px;
  object-fit: cover;
}

.project-name {
  font-size: 1.8rem; /* Slightly smaller font size */
  font-weight: 500;
  color: #212529;
  margin-bottom: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.project-name .green-text {
  color: var(--logo-green); /* Updated to new green */
}

/* Updated: Green color for "Room" */

/* END: Logo and Project Name Update Styling */
.logo i {
  font-size: 2.5rem;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
}

.title {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.subtitle {
  color: #6b7280;
  font-size: 1rem;
  font-weight: 400;
}

.form-group {
  margin-bottom: 1.5rem; /* Reduced margin between form groups */
  position: relative;
}

.form-control {
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.2rem 1.2rem 0.6rem 1.2rem; /* Reduced padding for smaller height */
  font-size: 0.95rem; /* Slightly smaller font size */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.05);
  position: relative;
  border-top-color: #d1d5db;
  border-bottom-color: #f3f4f6;
  width: 100%;
  line-height: 1.5;
}

.form-control::placeholder {
  color: transparent;
}

.form-label {
  position: absolute;
  left: 1.2rem;
  top: 1rem; /* Adjusted top position for smaller input height */
  color: #6b7280;
  font-size: 0.95rem; /* Slightly smaller font size */
  font-weight: 400;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #ffffff;
  padding: 0 0.4rem;
  border-radius: 4px;
  z-index: 1;
  transform-origin: left center;
}

.form-control:focus + .form-label,
.form-control:not(:placeholder-shown) + .form-label,
.form-control:valid + .form-label {
  transform: translateY(-1.5rem) scale(0.8); /* Adjusted translateY for smaller input height */
  /* Updated: Focus color to new light green */
  color: var(--light-green-hover);
  font-weight: 500;
  background: linear-gradient(to right, #ffffff 0%, #ffffff 100%);
  box-shadow: 0 0 0 2px #ffffff;
}

.form-control:focus {
  background: linear-gradient(145deg, #ffffff, #fafbff);
  /* Updated: Focus border color to new light green */
  border-color: var(--light-green-hover);
  border-top-color: var(--logo-green);
  border-bottom-color: var(--light-green-hover);
  box-shadow: inset 0 2px 4px rgba(39, 174, 96, 0.05),
    /* Adjusted shadow to match new green theme */ 0 0 0 3px
      rgba(39, 174, 96, 0.1),
    0 4px 12px rgba(39, 174, 96, 0.15);
  outline: none;
  transform: translateY(-1px);
}

.form-control:focus + .form-label {
  /* Updated: Focus label color to new light green */
  color: var(--light-green-hover);
}

.form-control:invalid:not(:placeholder-shown) {
  border-color: #ef4444;
  border-top-color: #dc2626;
  border-bottom-color: #f87171;
}

.form-control:invalid:not(:placeholder-shown) + .form-label {
  color: #ef4444;
}

.form-control:valid:not(:placeholder-shown) {
  border-color: var(--logo-green); /* Updated to new green */
  border-top-color: var(--logo-green);
  border-bottom-color: var(--logo-green);
}

.form-control:valid:not(:placeholder-shown) + .form-label {
  color: var(--logo-green); /* Updated to new green */
}

.login-btn {
  width: 100%;
  padding: 0.9rem; /* Further reduced padding for a more compact button */
  /* Updated: Button background to new green gradient for standard professional look */
  background: linear-gradient(
    145deg,
    var(--logo-green),
    #219150
  ); /* Adjusted gradient for more professional depth with new greens */
  border: 2px solid var(--logo-green);
  border-top-color: var(--light-green-hover);
  border-bottom-color: var(--logo-green);
  border-radius: 15px;
  color: white;
  font-size: 1rem; /* Slightly smaller font size */
  font-weight: 600;
  margin-bottom: 1.2rem; /* Adjusted margin */
  cursor: pointer;
  transition: all 0.3s ease;
  /* Updated: Button shadow to new green */
  box-shadow: 0 6px 12px rgba(39, 174, 96, 0.25),
    inset 0 2px 4px rgba(255, 255, 255, 0.25),
    inset 0 -2px 4px rgba(0, 0, 0, 0.15),
    inset 0 1px 2px rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.login-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.25), transparent);
  border-radius: 13px 13px 0 0;
}

.login-btn:hover {
  transform: translateY(-3px);
  /* Updated: Button hover background to a slightly lighter new green gradient for professional hover effect */
  background: linear-gradient(
    145deg,
    var(--light-green-hover),
    var(--logo-green)
  );
  /* Updated: Button hover shadow to new green */
  box-shadow: 0 10px 20px rgba(39, 174, 96, 0.35),
    inset 0 2px 4px rgba(255, 255, 255, 0.3),
    inset 0 -2px 4px rgba(0, 0, 0, 0.15);
}

.login-btn:active {
  transform: translateY(1px);
  /* Updated: Button active background to a darker new green gradient for post-click feedback, keeping professional */
  background: linear-gradient(145deg, #219150, #1b7a43);
  /* Updated: Button active shadow to new green */
  box-shadow: 0 2px 6px rgba(39, 174, 96, 0.3),
    inset 0 3px 8px rgba(0, 0, 0, 0.25),
    inset 0 -1px 2px rgba(255, 255, 255, 0.1);
  border-top-color: var(--logo-green);
  border-bottom-color: var(--light-green-hover);
}

.login-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.forgot-link {
  text-align: center;
  margin-bottom: 1.5rem; /* Adjusted margin */
}

.forgot-link a {
  /* Updated: Link color to new light green */
  color: var(--light-green-hover);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.forgot-link a:hover {
  /* Updated: Link hover color to new logo green */
  color: var(--logo-green);
}

.role-section {
  border-top: 1px solid #e5e7eb;
  padding-top: 1.5rem; /* Reduced padding */
  margin-bottom: 1.5rem; /* Reduced margin */
}

.role-title {
  text-align: center;
  color: #374151;
  font-size: 1rem; /* Slightly smaller font size */
  font-weight: 600;
  margin-bottom: 1rem; /* Reduced margin */
}

/* Updated: Role cards using Bootstrap grid for responsiveness */
.role-cards {
  margin-left: -0.5rem; /* Adjust for Bootstrap's default row negative margin */
  margin-right: -0.5rem; /* Adjust for Bootstrap's default row negative margin */
}

.role-card {
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  border: 2px solid #e2e8f0;
  border-top-color: #f1f5f9;
  border-bottom-color: #cbd5e1;
  border-radius: 18px;
  padding: 1.2rem 0.8rem; /* Reduced padding for smaller height */
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06),
    inset 0 2px 4px rgba(255, 255, 255, 0.9),
    inset 0 -2px 4px rgba(0, 0, 0, 0.04);
  position: relative;
  height: 100%; /* Ensure cards in a row have equal height */
  display: flex; /* For vertical centering of content */
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.role-card::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  height: 45%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), transparent);
  border-radius: 16px 16px 8px 8px;
  pointer-events: none;
}

.role-card:hover {
  /* Updated: Hover border color to new light green */
  border-color: var(--light-green-hover);
  border-top-color: var(--light-green-hover);
  border-bottom-color: var(--logo-green);
  transform: translateY(-4px);
  background: linear-gradient(145deg, #fefeff, #f0f4ff);
  /* Updated: Hover shadow to new light green */
  box-shadow: 0 12px 24px rgba(39, 174, 96, 0.15),
    inset 0 2px 4px rgba(255, 255, 255, 0.9),
    inset 0 -2px 4px rgba(0, 0, 0, 0.03);
}

.role-card.selected {
  /* Updated: Selected background to new green gradient */
  background: var(--logo-green);
  border-color: var(--logo-green);
  border-top-color: var(--logo-green);
  border-bottom-color: var(--logo-green);
  color: white;
  transform: translateY(-4px);
  /* Updated: Selected shadow to new green */
  box-shadow: 0 12px 24px rgba(39, 174, 96, 0.3),
    inset 0 2px 4px rgba(255, 255, 255, 0.25),
    inset 0 -2px 4px rgba(0, 0, 0, 0.15);
}

.role-card.selected::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.25), transparent);
}

.role-icon {
  font-size: 2.2rem; /* Slightly smaller icon size */
  /* Updated: Icon color to new light green */
  color: var(--light-green-hover);
  margin-bottom: 0.6rem; /* Adjusted margin */
  display: block;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.role-card.selected .role-icon {
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.role-name {
  font-weight: 600;
  font-size: 0.85rem; /* Slightly smaller font size */
  color: #374151;
}

.role-card.selected .role-name {
  color: white;
}

/* Auto Role Display for index.html */
.auto-role-display {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.auto-role-display .selected-role-card {
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  border: 2px solid #e2e8f0;
  border-radius: 18px;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.auto-role-display .role-icon {
  font-size: 1.8rem;
  color: #6b7280; /* Default color */
  margin-bottom: 0;
}

.auto-role-display .role-text {
  font-weight: 600;
  font-size: 1rem;
  color: #374151;
}

/* Specific styles for auto-role-display based on detected role */
.auto-role-display.selected-admin .selected-role-card {
  background: linear-gradient(145deg, #fefefe, #f0f4ff);
  border-color: #6c757d; /* Darker grey for admin */
  box-shadow: 0 8px 16px rgba(108, 117, 125, 0.2);
}
.auto-role-display.selected-admin .role-icon {
  color: #6c757d;
}
.auto-role-display.selected-admin .role-text {
  color: #343a40;
}

.auto-role-display.selected-teacher .selected-role-card {
  background: linear-gradient(145deg, #e6f7ff, #cceeff); /* Light blue */
  border-color: #007bff;
  box-shadow: 0 8px 16px rgba(0, 123, 255, 0.2);
}
.auto-role-display.selected-teacher .role-icon {
  color: #007bff;
}
.auto-role-display.selected-teacher .role-text {
  color: #0056b3;
}

.auto-role-display.selected-student .selected-role-card {
  background: linear-gradient(145deg, #e0ffe0, #b3ffb3); /* Light green */
  border-color: #28a745;
  box-shadow: 0 8px 16px rgba(40, 167, 69, 0.2);
}
.auto-role-display.selected-student .role-icon {
  color: #28a745;
}
.auto-role-display.selected-student .role-text {
  color: #1e7e34;
}

/* Registration Section */
.registration-section {
  text-align: center;
  margin-top: 1.5rem;
}

.registration-section .divider {
  position: relative;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  color: #6b7280;
}

.registration-section .divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  border-top: 1px solid #e5e7eb;
  z-index: 0;
}

.registration-section .divider span {
  background: #ffffff;
  padding: 0 10px;
  position: relative;
  z-index: 1;
}

/* *** MODIFICATION START: Professional Registration Button Color *** */
.registration-btn {
  width: 100%;
  padding: 0.9rem;
  background: linear-gradient(
    145deg,
    var(--professional-grey),
    var(--professional-grey-dark)
  ); /* Professional Grey */
  border: 2px solid var(--professional-grey);
  border-top-color: var(--professional-grey-light);
  border-bottom-color: var(--professional-grey-dark);
  border-radius: 15px;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15),
    inset 0 2px 4px rgba(255, 255, 255, 0.25),
    inset 0 -2px 4px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.registration-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.25), transparent);
  border-radius: 13px 13px 0 0;
}

.registration-btn:hover {
  transform: translateY(-3px);
  background: linear-gradient(
    145deg,
    var(--professional-grey-light),
    var(--professional-grey)
  );
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25),
    inset 0 2px 4px rgba(255, 255, 255, 0.3),
    inset 0 -2px 4px rgba(0, 0, 0, 0.15);
}

.registration-btn:active {
  transform: translateY(1px);
  background: linear-gradient(
    145deg,
    var(--professional-grey-dark),
    #343a40
  );
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), inset 0 3px 8px rgba(0, 0, 0, 0.25),
    inset 0 -1px 2px rgba(255, 255, 255, 0.1);
  border-top-color: var(--professional-grey-dark);
  border-bottom-color: var(--professional-grey-light);
}
/* *** MODIFICATION END *** */

/* Demo Credentials Section */
.demo-credentials {
  border-top: 1px solid #e5e7eb;
  padding-top: 1.2rem; /* Reduced padding */
  background: linear-gradient(145deg, #f8f9fa, #e9ecef);
  margin: 0 -2.5rem -2.5rem -2.5rem; /* Adjusted margin to match new padding */
  padding: 1.2rem 2.5rem 1.5rem 2.5rem; /* Adjusted padding */
  border-radius: 0 0 20px 20px;
}

.demo-title {
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.6rem; /* Adjusted margin */
  font-size: 0.9rem; /* Slightly smaller font size */
}

.demo-info {
  font-size: 0.8rem; /* Slightly smaller font size */
  color: #6b7280;
  line-height: 1.5;
}

.demo-info strong {
  color: #374151;
}

.demo-info em {
  color: #9ca3af;
  font-style: italic;
}

/* Alert Styles */
.alert {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 12px;
  color: white;
  font-weight: 500;
  z-index: 9999;
  min-width: 300px;
  max-width: 400px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border: none;
  animation: slideIn 0.3s ease-out;
}

.alert-success {
  background: linear-gradient(
    145deg,
    var(--light-green-hover),
    var(--logo-green)
  ); /* Updated to new green gradient */
}

.alert-error {
  background: linear-gradient(145deg, #ef4444, #dc2626);
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Loading Button */
.btn-loading {
  position: relative;
  color: transparent !important;
}

.btn-loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Enhanced Responsive Design for all devices */
@media (max-width: 992px) {
  body {
    padding: 1.5rem;
  }

  .login-container {
    max-width: 100%;
    padding: 2rem; /* Adjusted padding */
    border-radius: 18px;
  }

  .learnroom-logo {
    width: 90px; /* Adjusted */
    height: 90px; /* Adjusted */
  }

  .project-name {
    font-size: 1.7rem; /* Adjusted */
  }

  .title {
    font-size: 1.8rem;
  }

  .role-title {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  body {
    padding: 1rem;
  }

  .login-container {
    padding: 1.8rem 1.2rem; /* Adjusted padding */
    margin: 0.8rem; /* Adjusted margin */
    border-radius: 16px;
  }

  .demo-credentials {
    margin: 0 -1.2rem -1.8rem -1.2rem; /* Adjusted margin */
    padding: 1.2rem 1.2rem 1.5rem 1.2rem; /* Adjusted padding */
  }

  .title {
    font-size: 1.6rem;
  }

  /* Responsive Logo and Project Name */
  .learnroom-logo {
    width: 70px; /* Adjusted */
    height: 70px; /* Adjusted */
  }

  .project-name {
    font-size: 1.5rem; /* Adjusted */
  }

  .form-control {
    padding: 1.1rem 1rem 0.5rem 1rem; /* Adjusted padding */
    font-size: 0.9rem; /* Adjusted */
  }

  .form-label {
    font-size: 0.9rem; /* Adjusted */
    top: 0.9rem; /* Adjusted */
  }

  .form-control:focus + .form-label,
  .form-control:not(:placeholder-shown) + .form-label,
  .form-control:valid + .form-label {
    transform: translateY(-1.4rem) scale(0.8); /* Adjusted translateY */
  }

  .login-btn {
    padding: 0.8rem; /* Adjusted */
    font-size: 0.95rem; /* Adjusted */
    border-radius: 12px;
  }

  .role-cards {
    /* Allow Bootstrap columns to adjust, potentially stacking if needed */
  }

  .role-card {
    width: 100%;
    border-radius: 14px;
    padding: 0.9rem 0.5rem; /* Adjusted */
  }

  .role-icon {
    font-size: 1.8rem; /* Adjusted */
    margin-bottom: 0.4rem; /* Adjusted */
  }

  .role-name {
    font-size: 0.75rem; /* Adjusted */
  }

  .alert {
    right: 1rem;
    left: 1rem;
    min-width: auto;
    max-width: 90%;
  }
}

@media (max-width: 576px) {
  body {
    padding: 0.5rem;
  }

  .login-container {
    padding: 1.2rem 0.8rem; /* Adjusted padding */
    border-radius: 12px;
  }

  .demo-credentials {
    margin: 0 -0.8rem -1.2rem -0.8rem; /* Adjusted margin */
    padding: 1.2rem 0.8rem 1.5rem 0.8rem; /* Adjusted padding */
  }

  .title {
    font-size: 1.4rem;
  }

  .subtitle {
    font-size: 0.9rem;
  }

  .form-control {
    padding: 1rem 0.8rem 0.5rem 0.8rem; /* Adjusted padding */
    border-radius: 10px;
    font-size: 0.85rem; /* Adjusted */
  }

  .form-label {
    font-size: 0.85rem; /* Adjusted */
    top: 0.8rem; /* Adjusted */
  }

  .form-control:focus + .form-label,
  .form-control:not(:placeholder-shown) + .form-label,
  .form-control:valid + .form-label {
    transform: translateY(-1.3rem) scale(0.75); /* Adjusted translateY and scale */
  }

  .login-btn {
    padding: 0.7rem; /* Adjusted */
    font-size: 0.9rem; /* Adjusted */
    border-radius: 10px;
  }

  .role-section {
    padding-top: 1.2rem; /* Adjusted */
    margin-bottom: 1.2rem; /* Adjusted */
  }

  .role-title {
    font-size: 0.9rem; /* Adjusted */
    margin-bottom: 0.8rem; /* Adjusted */
  }

  .role-card {
    border-radius: 12px;
    padding: 0.7rem 0.3rem; /* Adjusted */
    margin-bottom: 0.8rem; /* Adjusted spacing if stacked */
  }

  .role-icon {
    font-size: 1.6rem; /* Adjusted */
    margin-bottom: 0.3rem; /* Adjusted */
  }

  .role-name {
    font-size: 0.75rem; /* Adjusted */
  }

  /* Smaller Mobile Logo and Project Name */
  .learnroom-logo {
    width: 50px; /* Adjusted */
    height: 50px; /* Adjusted */
  }

  .project-name {
    font-size: 1.3rem; /* Adjusted */
  }

  .forgot-link {
    margin-bottom: 1.2rem; /* Adjusted */
  }

  .forgot-link a {
    font-size: 0.85rem; /* Adjusted */
  }

  .demo-title {
    font-size: 0.85rem; /* Adjusted */
  }

  .demo-info {
    font-size: 0.75rem; /* Adjusted */
  }
}

@media (max-width: 320px) {
  .login-container {
    padding: 0.8rem 0.4rem; /* Further adjusted padding */
  }

  .learnroom-logo {
    width: 45px; /* Adjusted */
    height: 45px; /* Adjusted */
  }

  .project-name {
    font-size: 1.1rem; /* Adjusted */
  }

  .title {
    font-size: 1.1rem;
  }

  .form-control {
    padding: 0.9rem 0.6rem 0.4rem 0.6rem; /* Adjusted */
    font-size: 0.8rem; /* Adjusted */
  }

  .form-label {
    font-size: 0.8rem; /* Adjusted */
    top: 0.7rem; /* Adjusted */
  }

  .form-control:focus + .form-label,
  .form-control:not(:placeholder-shown) + .form-label,
  .form-control:valid + .form-label {
    transform: translateY(-1.2rem) scale(0.7); /* Adjusted */
  }

  .login-btn {
    padding: 0.6rem; /* Adjusted */
    font-size: 0.85rem; /* Adjusted */
  }

  .role-card {
    padding: 0.5rem 0.2rem; /* Adjusted */
  }

  .role-icon {
    font-size: 1.4rem; /* Adjusted */
  }

  .role-name {
    font-size: 0.65rem; /* Adjusted */
  }
}

/* For larger screens, ensure centering and no overflow */
@media (min-width: 1200px) {
  .login-container {
    max-width: 450px; /* Adjusted max-width for larger screens */
    padding: 3rem; /* Adjusted padding */
  }

  .learnroom-logo {
    width: 110px; /* Adjusted */
    height: 110px; /* Adjusted */
  }

  .project-name {
    font-size: 2rem; /* Adjusted */
  }

  .title {
    font-size: 2rem;
  }
}