* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
  min-height: 100vh;
}

.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  display: flex;
  justify-content: center;
  padding-top: 2rem;
  padding-bottom: 1rem;
}

.zoom-logo {
  height: 2rem;
  width: auto;
}

/* Main Content */
.main-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.form-container {
  width: 100%;
  max-width: 28rem;
}

.form-container > div:first-child {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  border: 1px solid #f3f4f6;
}

/* Meeting Details */
.meeting-section {
  text-align: center;
  margin-bottom: 2rem;
}

.meeting-details {
  background: #f0f9ff;
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid #dbeafe;
}

.meeting-icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.file-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: #dbeafe;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
}

.meeting-zoom-logo {
  height: 1.5rem;
  width: auto;
}

.meeting-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.meeting-time {
  font-size: 0.875rem;
  color: #4b5563;
  margin-bottom: 0.75rem;
}

.meeting-id {
  font-size: 0.75rem;
  color: #6b7280;
}

.join-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.75rem;
}

.join-description {
  color: #4b5563;
  font-size: 1rem;
}

/* Form */
.form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.input-container {
  position: relative;
}

.email-input{
  margin-bottom: 15px;
}

.email-input, .pwd-input {
  width: 100%;
  height: 3.5rem;
  font-size: 1rem;
  border: 2px solid #d1d5db;
  border-radius: 0.75rem;
  padding: 0 1rem;
  font-weight: 500;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  background: white;
}

.email-input:focus, .pwd-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1), 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.email-input:hover, .pwd-input:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.submit-button {
  width: 100%;
  height: 3.5rem;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  font-weight: 700;
  font-size: 1.125rem;
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.submit-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: scale(1.02);
}

.submit-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.button-text {
  font-weight: 700;
  font-size: 1.125rem;
}

.loading-spinner {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid white;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Alternative Sign In */
.alternative-signin {
  margin-top: 1.5rem;
  text-align: center;
}

.signin-link {
  color: #2563eb;
  font-size: 0.875rem;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.signin-link:hover {
  color: #1d4ed8;
}

/* Footer */
.footer {
  padding: 1.5rem 0;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.footer-link {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #374151;
}

.footer-separator {
  color: #6b7280;
}

/* Toast */
.toast {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  transition: all 0.3s ease;
  max-width: 20rem;
}

.toast.hidden {
  opacity: 0;
  transform: translateX(100%);
  pointer-events: none;
}

.toast-title {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.toast-description {
  color: #6b7280;
  font-size: 0.875rem;
}

#loader {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0; left: 0; 
    width: 100%; height: 100%;
    background: white; /* Or your site's theme color */
    z-index: 9999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* A simple CSS spinner */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 640px) {
  .main-content {
    padding: 0.5rem;
  }
  
  .form-container > div:first-child {
    padding: 1.5rem;
  }
  
  .meeting-details {
    padding: 1rem;
  }
}