/* Responsive Landing Page Styles
 * Focuses on making sign up and login forms highly visible in responsive mode
 */

/* Base responsive settings */
@media (max-width: 991px) {
  /* Header adjustments */
  .header-hero {
    flex-direction: column;
    padding: 15px;
    gap: 15px;
  }
  
  /* Make logo centered */
  .logo.sexy-logo {
    width: 100%;
    text-align: center;
    font-size: 28px;
  }
  
  /* Hide score icons on mobile */
  .score-icons {
    display: none;
  }
  
  /* Make the login form full width and more prominent */
  .login-form {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  /* Ensure each form element is on its own line */
  .login-form > * {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
  }
  
  /* Adjust role toggle button */
  .role-toggle-btn {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px !important;
    font-size: 16px;
  }
  
  /* Make input fields larger and more touch-friendly */
  .float-container {
    width: 100%;
    margin-bottom: 15px;
    display: block;
  }
  
  .float-container input {
    height: 50px;
    font-size: 16px;
    width: 100%;
    display: block;
  }
  
  /* Make login button larger and more visible */
  .signup-login-btn {
    width: 100%;
    padding: 12px !important;
    font-size: 16px;
    margin-top: 5px;
    display: block;
  }
  
  /* Adjust header text for smaller screens */
  .header-text {
    font-size: 24px;
    line-height: 1.3;
    padding: 0 10px;
  }
  
  .subtitle-text {
    font-size: 16px;
    padding: 0 15px;
  }
}

/* Even smaller screens (mobile phones) */
@media (max-width: 576px) {
  /* Further adjustments for very small screens */
  .header-hero {
    padding: 10px;
  }
  
  .logo.sexy-logo {
    font-size: 24px;
  }
  
  /* Hide login form in header on mobile devices */
  .header-hero .login-form {
    display: none;
  }
  
  /* Make the login form even more prominent */
  .login-form {
    padding: 15px 10px;
    background-color: rgba(0, 0, 0, 0.07);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  }
  
  /* Highlight form focus for better visibility */
  .login-form .float-container input:focus {
    border-color: #8B4DFF;
    box-shadow: 0 0 0 3px rgba(139, 77, 255, 0.25);
  }
  
  /* Ensure all forms have stacked fields */
  .form-fields-row,
  .invitation-login-form,
  .forgot-password-form,
  .reset-password-form,
  .auth-login-form {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  
  /* Make all form fields take full width */
  .form-fields-row > *,
  .invitation-login-form .float-container,
  .forgot-password-form .float-container,
  .reset-password-form .float-container,
  .auth-login-form .float-container,
  .custom-modal .float-container {
    width: 100% !important;
    margin-bottom: 15px;
    display: block;
  }
  
  /* Add more space between form fields */
  .float-container + .float-container {
    margin-top: 15px;
  }
  
  /* Make sure buttons are full width and have enough spacing */
  .button-container button,
  .reset-btn,
  .mobile-login-banner-button,
  .custom-modal button {
    width: 100%;
    margin: 5px 0;
    padding: 12px !important;
    height: auto;
  }
  
  /* Sticky login form for mobile */
  .mobile-sticky-login {
    position: sticky;
    top: 10px;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin: 0 auto 15px auto;
    padding: 15px;
    max-width: 95%;
    transition: all 0.3s ease;
  }
  
  /* Add a subtle transition animation when the form becomes sticky */
  .mobile-sticky-login {
    animation: stickyFormAppear 0.3s forwards;
  }
  
  @keyframes stickyFormAppear {
    from {
      opacity: 0.8;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Fix for form-fields-row to stack fields correctly */
  .form-fields-row {
    flex-direction: column !important;
    gap: 15px;
  }
  
  .form-fields-row .float-container {
    width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }
  
  /* Highlight animation for form on page load */
  .login-form-highlight {
    animation: highlightForm 2s ease;
  }
  
  @keyframes highlightForm {
    0%, 100% {
      box-shadow: 0 0 10px rgba(139, 77, 255, 0.1);
    }
    50% {
      box-shadow: 0 0 20px rgba(139, 77, 255, 0.5);
    }
  }
  
  /* Highlight the login button even more */
  .signup-login-btn {
    background: #000;
    color: #fff;
    font-weight: bold;
    transition: transform 0.2s ease, background-color 0.2s ease;
  }
  
  .signup-login-btn:hover {
    transform: translateY(-2px);
    background-color: #333;
  }
  
  /* Keep keyframes definition in case it's needed elsewhere */
  @keyframes pulse {
    0% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.03);
    }
    100% {
      transform: scale(1);
    }
  }
  
  /* Make the forgot password link more visible */
  .forgot-password-container {
    text-align: center;
    margin: 5px 0 15px;
  }
  
  .forgot-password-container a {
    font-size: 16px;
    padding: 5px;
    display: inline-block;
  }
  
  /* Adjust table section for mobile */
  .table-wrapper {
    margin-top: 20px;
  }
  
  .table-header h2 {
    font-size: 20px;
  }
  
  /* Custom modal adjustments for mobile */
  .custom-modal-container {
    width: 95%;
    padding: 15px;
  }
  
  .custom-modal-title {
    font-size: 18px;
  }
  
  /* More specific fixes for modals */
  .custom-modal .form-fields-row {
    display: flex;
    flex-direction: column !important; 
    margin-bottom: 0;
  }
  
  /* This ensures all float containers in any modal are full width */
  .custom-modal .float-container {
    width: 100% !important;
    margin: 0 0 15px 0 !important;
  }
  
  /* Make buttons in modals more visible and full width */
  .custom-modal .button-container {
    display: block;
    width: 100%;
  }
  
  .custom-modal .button-container button {
    width: 100%;
    margin: 0;
    display: block;
    padding: 12px !important;
  }
  
  /* Auth modal specific adjustments */
  #auth-modal-container .auth-modal-body {
    padding: 15px;
  }
  
  #auth-modal-container .auth-login-form {
    display: flex;
    flex-direction: column;
  }
  
  #auth-modal-container .float-container {
    width: 100%;
    margin-bottom: 15px;
  }
  
  /* Hide header and subtitle text completely on mobile */
  .header-subtitle-section {
    display: none !important;
  }
  
  /* Alternative approach - hide individual elements */
  .header-text,
  .subtitle-text {
    display: none !important;
  }
  
  /* Hide the scholar tour panel when minimized on mobile */
  div.scholar-tour-panel.minimized {
    display: none !important;
  }
}

/* Add a mobile-specific login banner that appears when scrolling */
@media (max-width: 767px) {
  .mobile-login-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 15px;
    text-align: center;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  }
  
  .mobile-login-banner.visible {
    display: block;
    animation: slideUp 0.3s forwards;
  }
  
  .mobile-login-banner-button {
    background-color: #8B4DFF;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-weight: bold;
    margin-top: 10px;
    width: 90%;
  }
  
  @keyframes slideUp {
    from {
      transform: translateY(100%);
    }
    to {
      transform: translateY(0);
    }
  }
  
  /* Hide the scholar tour panel when minimized on mobile */
  div.scholar-tour-panel.minimized {
    display: none !important;
  }
}

/* Tablet-specific adjustments */
@media (min-width: 577px) and (max-width: 991px) {
  .login-form {
    max-width: 600px;
    padding: 20px;
  }
  
  .header-text {
    font-size: 28px;
  }
}

/* Landscape orientation adjustments for mobile */
@media (max-width: 767px) and (orientation: landscape) {
  .header-hero {
    padding: 10px 15px;
  }
  
  .login-form {
    max-width: 600px;
  }
  
  /* Adjust spacing to fit better in landscape */
  .float-container input {
    height: 45px;
    margin-bottom: 10px;
  }
  
  .header-subtitle-section {
    padding: 20px 15px;
  }
} 