/* public/css/login.css */
/* FULL VIEWPORT REFACTOR - All px values converted to vw/vh where applicable */

#login-container {
  position: absolute;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 100;
  background-color: #111827;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* Bubble container - vertical layout: image on top, buttons below */
#login-bubble {
  width: min(380px, 90vw);
  max-height: 90vh;
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Image section on top */
#login-image-section {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex-shrink: 0;
}

/* Image fills the section */
#login-image-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Buttons section below */
#login-buttons-section {
  padding: 24px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}

/* Make all buttons full width */
#login-buttons-section .form-button {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  border-radius: 8px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  cursor: pointer;
}

/* Social Login Buttons */
#social-login-buttons {
  width: 100%;
  max-width: 320px;
}

#social-login-buttons .form-button {
  width: 100%;
  padding: 14px 20px;
  font-size: 16px;
  border-radius: 8px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  cursor: pointer;
}

#social-login-buttons .form-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Facebook Button */
.facebook-button {
  background-color: #1877F2;
  border: none;
  color: white;
}

.facebook-button:hover {
  background-color: #166fe5;
}

/* Apple Button */
.apple-button {
  background-color: #000000;
  border: 1px solid #333;
  color: white;
}

.apple-button:hover {
  background-color: #1a1a1a;
}

/* Divider */
.divider-line {
  display: flex;
  align-items: center;
  text-align: center;
  color: #6b7280;
  font-size: 14px;
}

.divider-line::before,
.divider-line::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #374151;
}

.divider-text {
  padding: 0 12px;
}

/* Email Form Container */
#email-form-container {
  width: 100%;
  max-width: 320px;
}

#email-form-container .form-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #374151;
  background-color: #1f2937;
  color: white;
  font-size: 14px;
  transition: border-color 0.2s ease;
}

#email-form-container .form-input:focus {
  outline: none;
  border-color: #60a5fa;
}

#email-form-container .form-input::placeholder {
  color: #9ca3af;
}

/* Secondary Button */
.secondary-button {
  background-color: #374151;
  border: 1px solid #4b5563;
  color: white;
  width: 100%;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.secondary-button:hover {
  background-color: #4b5563;
}

/* Text Button */
.text-button {
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 14px;
  padding: 8px;
  transition: color 0.2s ease;
}

.text-button:hover {
  color: white;
}

/* Error Message */
#email-error-msg {
  text-align: center;
  padding: 8px;
  background-color: rgba(239, 68, 68, 0.1);
  border-radius: 6px;
}

/* Email Button */
.email-button {
  background-color: #374151;
  border: 1px solid #4b5563;
  color: white;
  width: 100%;
  padding: 14px 20px;
  font-size: 16px;
  border-radius: 8px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  cursor: pointer;
}

.email-button:hover {
  background-color: #4b5563;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Email Modal */
#email-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#email-modal .custom-modal-content {
  max-width: 400px;
  width: 90%;
  padding: 24px;
  background-color: #1f2937;
  border-radius: 12px;
  border: 1px solid #374151;
}

#email-modal .modal-body input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #374151;
  background-color: #111827;
  color: white;
  font-size: 14px;
}

#email-modal .modal-body input:focus {
  outline: none;
  border-color: #60a5fa;
}

#email-modal .custom-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

#email-modal .modal-button {
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

#email-modal .modal-confirm-btn {
  background-color: #3b82f6;
  border: none;
  color: white;
}

#email-modal .modal-confirm-btn:hover {
  background-color: #2563eb;
}

#email-modal .modal-cancel-btn {
  background-color: transparent;
  border: 1px solid #4b5563;
  color: #9ca3af;
}

#email-modal .modal-cancel-btn:hover {
  background-color: #374151;
  color: white;
}

/* Auth Mode Toggle */
.auth-toggle-container {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  background-color: #111827;
  border-radius: 8px;
  padding: 4px;
}

.auth-toggle-btn {
  flex: 1;
  padding: 10px 16px;
  border: none;
  background-color: transparent;
  color: #9ca3af;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-toggle-btn:hover {
  color: white;
}

.auth-toggle-btn.active {
  background-color: #3b82f6;
  color: white;
}

.auth-toggle-btn.active:hover {
  background-color: #2563eb;
}
