/* Authentication Styles */

/* Auth Container */
.auth-container {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 320px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  z-index: 1000;
  transition: all 0.3s ease;
}

/* Auth Tabs */
.auth-tabs {
  display: flex;
  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 */
.auth-forms {
  padding: 20px;
}

.auth-form {
  display: none;
}

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

/* Form Groups */
.form-group {
  margin-bottom: 16px;
}

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

.form-group input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.2s ease;
}

.form-group input:focus {
  border-color: #4a6cf7;
  outline: none;
}

/* Auth Button */
.auth-button {
  width: 100%;
  padding: 12px;
  background-color: #4a6cf7;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

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

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

/* Forgot Password Link */
.forgot-password {
  display: block;
  text-align: right;
  margin-bottom: 16px;
  font-size: 13px;
  color: #4a6cf7;
  text-decoration: none;
}

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

/* Error Message */
.auth-error {
  margin-top: 12px;
  color: #e53935;
  font-size: 13px;
}

/* Auth Required Message */
.auth-required-message {
  max-width: 500px;
  margin: 100px auto;
  padding: 30px;
  background-color: var(--card-bg, #fff);
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.auth-required-message h2 {
  margin-bottom: 15px;
  color: var(--heading-color, #1e293b);
}

.auth-required-message p {
  margin-bottom: 25px;
  color: var(--text-color, #334155);
}

.auth-required-message .btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--button-primary-bg, #4a6cf7);
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.auth-required-message .btn:hover {
  background-color: #3a5ce5;
}

/* Auth Message */
.auth-message {
  margin: 20px 0;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

.auth-message.success {
  background-color: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.auth-message.error {
  background-color: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
}

.auth-message h3 {
  margin-bottom: 10px;
  color: var(--heading-color, #1e293b);
}

.auth-message p {
  margin-bottom: 20px;
  color: var(--text-color, #334155);
}

.auth-message .auth-button {
  margin: 5px;
}

.auth-message .auth-button.secondary {
  background-color: transparent;
  border: 1px solid var(--button-primary-bg, #4a6cf7);
  color: var(--button-primary-bg, #4a6cf7);
}

.auth-message .auth-button.secondary:hover {
  background-color: rgba(74, 108, 247, 0.1);
}

.signup-link {
  margin-top: 20px;
  padding: 15px;
  background-color: rgba(74, 108, 247, 0.1);
  border-radius: 8px;
  text-align: center;
}

.signup-link a.manual-link {
  color: var(--button-primary-bg, #4a6cf7);
  font-weight: 500;
  text-decoration: none;
}

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

.continue-button {
  margin-top: 15px;
  width: 100%;
}

/* User Profile styles moved to sidebar.css */

.user-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.user-email {
  font-weight: 500;
  color: #333;
  margin-right: 12px;
}

.instructor-badge {
  display: inline-block;
  padding: 4px 8px;
  background-color: #4a6cf7;
  color: white;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 5px;
}

.instructor-badge.status-pending {
  background-color: #f7a74a;
}

.instructor-badge.status-approved {
  background-color: #4acf7a;
}

.instructor-badge.status-rejected {
  background-color: #f74a4a;
}

.logout-button {
  padding: 8px 16px;
  background-color: #f5f5f5;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}

.logout-button:hover {
  background-color: #e0e0e0;
}

/* Modal */
.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: 2000;
}

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

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

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

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

.modal-body {
  padding: 20px;
}

/* Responsive Styles */
@media (max-width: 480px) {
  .auth-container {
    width: 90%;
    top: 10px;
    right: 5%;
  }

  /* User profile styles removed */
}
