* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  min-height: 100vh;
  background: linear-gradient(
    135deg,
    #2563eb 0%,
    #3b82f6 35%,
    #60a5fa 75%,
    #ffffff 100%
  );
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.container {
  width: 1000px;
  height: 600px;
  display: flex;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.3);
  position: relative;
  background-color: white;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.left-panel {
  width: 50%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
    url("../Assets/login.jpg") center/cover;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(37, 99, 235, 0.8),
    rgba(37, 99, 235, 0.6)
  );
  z-index: 1;
}

.content-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  color: white;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header .logo {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.header .logo .blue-text {
  color: #007bff;
}

.header .logo .white-text {
  color: white;
}

.header .buttons {
  display: flex;
  gap: 10px;
}

.header .buttons button {
  padding: 8px 16px;
  border-radius: 20px;
  border: none;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.header .buttons button.outline {
  background: transparent;
  border: 1px solid white;
  color: white;
}

.header .buttons button.solid {
  background: white;
  color: #2563eb;
}

.header .buttons button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.bottom-content {
  display: flex;
  justify-content: flex-end;
}

.right-panel {
  width: 50%;
  height: 100%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-container {
  width: 100%;
  max-width: 350px;
  margin: 0 auto;
  max-height: 100%;
  overflow-y: auto;
  padding-bottom: 20px;
}

.greeting {
  margin-bottom: 30px;
}

.greeting h2 {
  font-size: 32px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 10px;
}

.greeting p {
  color: #64748b;
  font-size: 14px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.input-field {
  position: relative;
}

.input-field input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.input-field input:focus {
  border-color: #2563eb;
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.forgot-password {
  text-align: right;
  font-size: 12px;
  color: #2563eb;
  margin-top: -5px;
  text-decoration: none;
}

.login-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #f44336;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.login-btn:hover {
  background: #e53935;
  box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

.signup-link {
  text-align: center;
  font-size: 13px;
  color: #64748b;
  margin-top: 20px;
}

.signup-link a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.social-icons a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: #f8fafc;
  color: #2563eb;
  border-color: #2563eb;
}

.role-tabs {
  display: flex;
  background: #f1f5f9;
  border-radius: 8px;
  margin-bottom: 20px;
  overflow: hidden;
}

.role-tab {
  flex: 1;
  padding: 10px 15px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #64748b;
}

.role-tab.active {
  background: #2563eb;
  color: white;
}

.form-panel {
  display: none;
}

.form-panel.active {
  display: block;
}

.file-upload {
  border: 1px dashed #e2e8f0;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  margin-bottom: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.file-upload:hover {
  border-color: #2563eb;
  background: #f0f7ff;
}

.file-upload p {
  font-size: 12px;
  color: #64748b;
  margin-top: 5px;
}

.file-upload input {
  display: none;
}

.file-icon {
  font-size: 24px;
  color: #2563eb;
  margin-bottom: 5px;
}

/* Animation classes */
.slide-in {
  animation: slideIn 0.5s forwards;
}

.slide-out {
  animation: slideOut 0.5s forwards;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(-100%);
    opacity: 0;
  }
}

/* Add these new animation styles before the media query */
.animate-greeting {
  animation: slideDown 0.8s ease forwards;
  opacity: 0;
}

.animate-welcome {
  animation: fadeIn 0.8s ease forwards;
  animation-delay: 0.4s;
  opacity: 0;
}

@keyframes slideDown {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.typewriter-text {
  overflow: hidden;
  border-right: 2px solid #1e293b;
  white-space: nowrap;
  margin: 0;
  animation: typing 1s steps(20, end), blink-caret 0.75s step-end infinite;
  display: inline-block;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: #1e293b;
  }
}

/* Add notification styles before the media queries */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 25px;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  z-index: 1000;
  animation: slideIn 0.3s ease-out;
}

.notification.success {
  background-color: #22c55e;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.notification.error {
  background-color: #ef4444;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

@media (max-width: 767px) {
  .container {
    flex-direction: column;
    height: auto;
  }

  .left-panel {
    width: 100%;
    height: 250px;
  }

  .right-panel {
    width: 100%;
    padding: 30px 20px;
  }
}

/* Updated and new responsive styles */
@media (max-width: 1024px) {
  .container {
    width: 90%;
    max-width: 900px;
  }

  .greeting h2 {
    font-size: 28px;
  }

  .form-container {
    max-height: 80vh;
    overflow-y: auto;
    padding-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    width: 95%;
  }

  .left-panel {
    width: 100%;
    height: 200px;
  }

  .right-panel {
    width: 100%;
    padding: 25px 20px;
  }

  .header .buttons {
    display: none; /* Hide redundant buttons on mobile */
  }

  .form-container {
    max-height: 75vh;
    overflow-y: auto;
    padding-bottom: 20px;
  }

  .greeting {
    text-align: center;
  }

  .greeting h2 {
    font-size: 24px;
  }

  .greeting p {
    font-size: 14px;
  }

  .login-btn {
    padding: 14px;
    font-size: 16px;
  }

  .role-tabs {
    margin: 15px 0;
  }

  .social-icons {
    margin-top: 20px;
  }

  .typewriter-text {
    font-size: 24px;
  }

  #teacher-fields {
    gap: 10px;
    margin-bottom: 10px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 10px;
  }

  .container {
    border-radius: 15px;
  }

  .left-panel {
    height: 150px;
  }

  .header .logo {
    font-size: 18px;
  }

  .input-field input {
    padding: 10px 12px;
    font-size: 14px;
  }

  .role-tab {
    padding: 8px 12px;
    font-size: 13px;
  }

  .file-upload {
    padding: 10px;
  }

  .social-icons {
    gap: 10px;
  }

  .social-icons a {
    width: 32px;
    height: 32px;
  }

  .signup-link {
    font-size: 12px;
  }

  #teacher-fields {
    gap: 8px;
    margin-bottom: 8px;
  }
}

@media (max-height: 600px) and (orientation: landscape) {
  .container {
    flex-direction: row;
    height: 95vh;
  }

  .left-panel {
    width: 40%;
    height: 100%;
  }

  .right-panel {
    width: 60%;
  }

  .form-container {
    max-height: 90vh;
    overflow-y: auto;
    padding-right: 10px;
  }
}

/* Add smooth scrolling for all screen sizes */
html {
  scroll-behavior: smooth;
}

/* Improve touch targets for mobile */
@media (hover: none) {
  .login-btn,
  .role-tab,
  .social-icons a,
  .file-upload {
    min-height: 44px;
  }

  input,
  select,
  textarea {
    font-size: 16px !important; /* Prevent zoom on focus in iOS */
  }
}
