/* Login Page Styles */

body.login-page {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: #f5f7fa;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-container {
  display: flex;
  width: 90%;
  max-width: 1000px;
  min-height: 600px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.login-content {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.login-image {
  flex: 1;
  background-image: url('https://images.unsplash.com/photo-1501504905252-473c47e087f8?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1074&q=80');
  background-size: cover;
  background-position: center;
  position: relative;
}

.login-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(74, 108, 247, 0.7), rgba(45, 85, 255, 0.7));
  z-index: 1;
}

.login-header {
  margin-bottom: 30px;
  text-align: center;
}

.login-header h1 {
  font-size: 32px;
  color: #333;
  margin-bottom: 10px;
}

.brand-name {
  color: #4a6cf7;
  font-weight: 700;
}

.login-subtitle {
  font-size: 18px;
  color: #4a6cf7;
  margin-bottom: 15px;
  font-weight: 500;
}

.login-description {
  font-size: 16px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 20px;
}

.auth-tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid #e1e1e1;
}

.auth-tab {
  flex: 1;
  padding: 12px;
  text-align: center;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 500;
  color: #666;
  transition: all 0.2s ease;
}

.auth-tab:hover {
  background-color: #f5f5f5;
}

.auth-tab.active {
  color: #4a6cf7;
  border-bottom: 2px solid #4a6cf7;
}

.auth-forms {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.auth-form {
  display: none;
  flex: 1;
}

.auth-form.active {
  display: block;
}

.form-group {
  margin-bottom: 20px;
}

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

.form-group input[type="email"],
.form-group input[type="password"] {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 15px;
  transition: border-color 0.2s ease;
}

.form-group input:focus {
  border-color: #4a6cf7;
  outline: none;
  box-shadow: 0 0 0 2px rgba(74, 108, 247, 0.2);
}

.checkbox-group {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.checkbox-group input[type="checkbox"] {
  margin-right: 10px;
  width: 18px;
  height: 18px;
  accent-color: #4a6cf7;
}

.checkbox-group label {
  margin-bottom: 0;
  cursor: pointer;
}

.instructor-info {
  margin-top: 8px;
  padding: 10px;
  background-color: #f5f7fa;
  border-radius: 6px;
  font-size: 14px;
  color: #666;
  display: none;
}

#signup-instructor:checked ~ .instructor-info,
.checkbox-group:hover .instructor-info {
  display: block;
}

.auth-button {
  width: 100%;
  padding: 14px;
  background-color: #4a6cf7;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-top: 10px;
}

.auth-button:hover {
  background-color: #3a5ce5;
}

.auth-button:disabled {
  background-color: #a0aef0;
  cursor: not-allowed;
}

.forgot-password {
  display: block;
  text-align: right;
  margin-bottom: 20px;
  font-size: 14px;
  color: #4a6cf7;
  text-decoration: none;
}

.forgot-password:hover {
  text-decoration: underline;
}

.auth-error {
  margin-top: 15px;
  color: #e53935;
  font-size: 14px;
}

.login-footer {
  margin-top: 30px;
  text-align: center;
  font-size: 14px;
  color: #666;
}

.login-footer a {
  color: #4a6cf7;
  text-decoration: none;
}

.login-footer a:hover {
  text-decoration: underline;
}

/* Modal Styles */
.modal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  width: 90%;
  max-width: 400px;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.modal-header {
  padding: 20px;
  border-bottom: 1px solid #e1e1e1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  margin: 0;
  font-size: 20px;
  color: #333;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

.modal-body {
  padding: 20px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .login-container {
    flex-direction: column;
    width: 95%;
    min-height: auto;
  }
  
  .login-image {
    display: none;
  }
  
  .login-content {
    padding: 30px 20px;
  }
  
  .login-header h1 {
    font-size: 28px;
  }
  
  .login-subtitle {
    font-size: 16px;
  }
}
