/* ========================================
   RESPONSIVE MENTEE SIGNUP STYLES
   Mobile-friendly enhancements for mentee signup pages
   ======================================== */

/* Mobile breakpoints for mentee signup pages */
@media (max-width: 768px) {
  /* Container adjustments - matching signin page */
  .container-wrapper {
    padding: 15px;
    min-height: 100vh;
  }
  
  .signup-container {
    padding: 15px;
    margin: 10px auto;
    max-width: none;
    width: calc(100% - 20px);
    border-radius: 12px;
  }
  
  /* Step indicator mobile layout - ultra compressed horizontal */
  .steps-wrapper {
    flex-direction: row;
    gap: 1px;
    margin-bottom: 10px;
    padding: 0 2px;
    margin-left: 0;
    margin-right: 0;
    max-width: none;
    justify-content: space-between;
    align-items: flex-start;
  }
  
  .step-indicator {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1px;
    padding: 1px 0px;
    margin-bottom: 0;
    flex: 1;
    min-width: 0;
  }
  
  .step-circle {
    width: 18px;
    height: 18px;
    font-size: 8px;
    margin-bottom: 0;
    flex-shrink: 0;
  }
  
  .step-label {
    font-family: 'Gabarito', sans-serif;
    font-size: 6px;
    font-weight: 500;
    letter-spacing: 0.2px;
    line-height: 0.9;
    max-width: 30px;
    text-align: center;
    word-wrap: break-word;
    color: white;
  }
  
  .step-indicator.active .step-label {
    font-weight: 600;
    color: #4CAF50 !important;
  }
  
  .step-indicator.completed .step-label {
    font-weight: 600;
    color: #4CAF50 !important;
  }
  
  .step-circle {
    font-family: 'Gabarito', sans-serif;
  }
  
  .step-indicator.active .step-circle,
  .step-indicator.completed .step-circle {
    background-color: #4CAF50 !important;
    border-color: #4CAF50 !important;
  }
  
  .step-line {
    display: block;
    height: 1px;
    flex: 1;
    background-color: white;
    margin: 0 2px;
    min-width: 6px;
    align-self: center;
    position: relative;
    top: -9px;
    z-index: 1;
  }
  
  .step-line.active,
  .step-line.completed {
    background-color: #4CAF50 !important;
  }
  
  /* Form adjustments - matching signin page */
  .signup-container h3 {
    font-size: 24px;
    margin-bottom: 20px;
  }
  
  .signup-container p {
    font-size: 15px;
    margin-bottom: 15px;
  }
  
  /* Input fields mobile optimization */
  .signup-container input[type="text"],
  .signup-container input[type="email"],
  .signup-container input[type="password"] {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 14px 16px;
    margin-bottom: 15px;
  }
  
  /* Labels mobile optimization */
  .signup-container label {
    font-size: 15px;
    margin-bottom: 8px;
  }
  
  /* Button mobile optimization - matching signin page */
  .signup-container .btn-primary {
    font-size: 16px;
    padding: 14px 20px;
    min-height: 48px;
    margin: 20px 0;
    width: 100%;
  }
  
  /* Footer text mobile optimization */
  .signup-container .footer-text {
    font-size: 14px;
    line-height: 1.5;
  }
  
  .signup-container .footer-text a {
    font-size: 14px;
  }
  
  /* Password requirements mobile layout */
  #password-requirements {
    margin-left: 0;
    width: 100%;
    font-size: 13px;
  }
  
  #password-requirements h4 {
    font-size: 14px;
    margin: 15px 0 10px 0;
  }
  
  #password-requirements ul {
    padding-left: 0;
  }
  
  #password-requirements li {
    margin: 8px 0;
    font-size: 13px;
  }
  
  /* Checkbox group mobile optimization */
  .checkbox-group {
    margin: 15px 0 0 0;
    font-size: 13px;
  }
  
  .checkbox-group label {
    font-size: 13px;
    line-height: 1.4;
  }
  
  /* Input group mobile optimization */
  .input-group {
    position: relative;
    width: 100%;
  }
  
  .input-group input {
    width: 100%;
    padding-right: 40px;
    box-sizing: border-box;
  }
  
  .input-group-text {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    background: none;
    border: none;
    padding: 8px;
    font-size: 16px;
  }
  
  /* Student info display mobile optimization */
  .signup-container div[style*="background: rgba(255,255,255,0.1)"] {
    padding: 15px;
    margin-bottom: 20px;
  }
  
  .signup-container div[style*="background: rgba(255,255,255,0.1)"] p {
    font-size: 13px;
    margin: 8px 0;
    line-height: 1.4;
  }
}

/* Extra small screens - matching signin page */
@media (max-width: 480px) {
  .container-wrapper {
    padding: 8px;
  }
  
  .signup-container {
    padding: 12px;
    margin: 8px auto;
    width: calc(100% - 10px);
    border-radius: 8px;
  }
  
  .steps-wrapper {
    padding: 0 1px;
    gap: 0px;
    margin-bottom: 8px;
  }
  
  .step-indicator {
    padding: 0px;
    gap: 0px;
  }
  
  .step-circle {
    width: 16px;
    height: 16px;
    font-size: 7px;
  }
  
  .step-label {
    font-family: 'Gabarito', sans-serif;
    font-size: 5px;
    font-weight: 500;
    letter-spacing: 0.2px;
    line-height: 0.8;
    max-width: 25px;
    color: white;
  }
  
  .step-indicator.active .step-label {
    font-weight: 600;
    color: #4CAF50 !important;
  }
  
  .step-indicator.completed .step-label {
    font-weight: 600;
    color: #4CAF50 !important;
  }
  
  .step-circle {
    font-family: 'Gabarito', sans-serif;
  }
  
  .step-indicator.active .step-circle,
  .step-indicator.completed .step-circle {
    background-color: #4CAF50 !important;
    border-color: #4CAF50 !important;
  }
  
  .step-line {
    height: 1px;
    margin: 0 1px;
    min-width: 4px;
    top: -8px;
    background-color: white;
  }
  
  .step-line.active,
  .step-line.completed {
    background-color: #4CAF50 !important;
  }
  
  .signup-container h3 {
    font-size: 20px;
    margin-bottom: 15px;
  }
  
  .signup-container p {
    font-size: 14px;
    margin-bottom: 12px;
  }
  
  .signup-container input[type="text"],
  .signup-container input[type="email"],
  .signup-container input[type="password"] {
    padding: 12px 14px;
    font-size: 16px;
    margin-bottom: 12px;
  }
  
  .signup-container label {
    font-size: 14px;
    margin-bottom: 6px;
  }
  
  .signup-container .btn-primary {
    font-size: 15px;
    padding: 12px 18px;
    min-height: 44px;
    margin: 15px 0;
    width: 100%;
  }
  
  .signup-container .footer-text {
    font-size: 13px;
    line-height: 1.4;
  }
  
  .signup-container .footer-text a {
    font-size: 13px;
  }
  
  #password-requirements {
    font-size: 12px;
  }
  
  #password-requirements h4 {
    font-size: 13px;
    margin: 12px 0 8px 0;
  }
  
  #password-requirements li {
    margin: 6px 0;
    font-size: 12px;
  }
  
  .checkbox-group {
    font-size: 12px;
    margin: 12px 0 0 0;
  }
  
  .checkbox-group label {
    font-size: 12px;
  }
  
  .input-group-text {
    padding: 6px;
    font-size: 14px;
  }
  
  .signup-container div[style*="background: rgba(255,255,255,0.1)"] {
    padding: 12px;
    margin-bottom: 15px;
  }
  
  .signup-container div[style*="background: rgba(255,255,255,0.1)"] p {
    font-size: 12px;
    margin: 6px 0;
  }
}

/* Extra small mobile screens */
@media (max-width: 360px) {
  .container-wrapper {
    padding: 5px;
  }
  
  .signup-container {
    padding: 10px;
    margin: 5px auto;
    width: calc(100% - 5px);
  }
  
  .steps-wrapper {
    padding: 0 0px;
    gap: 0px;
    margin-bottom: 6px;
  }
  
  .step-indicator {
    padding: 0px;
    gap: 0px;
  }
  
  .step-circle {
    width: 14px;
    height: 14px;
    font-size: 6px;
  }
  
  .step-label {
    font-family: 'Gabarito', sans-serif;
    font-size: 4px;
    font-weight: 500;
    letter-spacing: 0.2px;
    line-height: 0.7;
    max-width: 20px;
    color: white;
  }
  
  .step-indicator.active .step-label {
    font-weight: 600;
    color: #4CAF50 !important;
  }
  
  .step-indicator.completed .step-label {
    font-weight: 600;
    color: #4CAF50 !important;
  }
  
  .step-circle {
    font-family: 'Gabarito', sans-serif;
  }
  
  .step-indicator.active .step-circle,
  .step-indicator.completed .step-circle {
    background-color: #4CAF50 !important;
    border-color: #4CAF50 !important;
  }
  
  .step-line {
    height: 1px;
    margin: 0 0px;
    min-width: 2px;
    top: -7px;
    background-color: white;
  }
  
  .step-line.active,
  .step-line.completed {
    background-color: #4CAF50 !important;
  }
  
  .signup-container h3 {
    font-size: 18px;
    margin-bottom: 12px;
  }
  
  .signup-container p {
    font-size: 13px;
    margin-bottom: 10px;
  }
  
  .signup-container input[type="text"],
  .signup-container input[type="email"],
  .signup-container input[type="password"] {
    padding: 10px 12px;
    font-size: 16px;
    margin-bottom: 10px;
  }
  
  .signup-container label {
    font-size: 13px;
    margin-bottom: 5px;
  }
  
  .signup-container .btn-primary {
    font-size: 14px;
    padding: 10px 16px;
    min-height: 42px;
    margin: 12px 0;
    width: 100%;
  }
  
  .signup-container .footer-text {
    font-size: 12px;
    line-height: 1.3;
  }
  
  .signup-container .footer-text a {
    font-size: 12px;
  }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
  .container-wrapper {
    padding: 5px;
    min-height: auto;
  }
  
  .signup-container {
    padding: 15px;
  }
  
  .steps-wrapper {
    flex-direction: row;
    gap: 8px;
    margin-bottom: 20px;
  }
  
  .step-indicator {
    flex-direction: column;
    text-align: center;
    gap: 6px;
    padding: 8px;
  }
  
  .step-circle {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  
  .step-label {
    font-family: 'Gabarito', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2px;
    text-align: center;
    color: white;
  }
  
  .step-indicator.active .step-label {
    font-weight: 600;
    color: #4CAF50 !important;
  }
  
  .step-indicator.completed .step-label {
    font-weight: 600;
    color: #4CAF50 !important;
  }
  
  .step-circle {
    font-family: 'Gabarito', sans-serif;
  }
  
  .step-indicator.active .step-circle,
  .step-indicator.completed .step-circle {
    background-color: #4CAF50 !important;
    border-color: #4CAF50 !important;
  }
  
  .signup-container h3 {
    font-size: 18px;
    margin-bottom: 10px;
  }
  
  .signup-container p {
    font-size: 13px;
    margin-bottom: 15px;
  }
}

/* Touch-friendly improvements */
@media (max-width: 768px) {
  /* Better touch targets */
  .step-indicator {
    min-height: 48px;
    cursor: pointer;
  }
  
  .input-group-text {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Improved focus states for mobile */
  .signup-container input:focus {
    transform: scale(1.02);
    transition: all 0.2s ease;
  }
  
  .signup-container .btn-primary:active {
    transform: scale(0.98);
    transition: all 0.1s ease;
  }
  
  /* Mobile form animations */
  .signup-container {
    animation: slideInUp 0.3s ease-out;
  }
  
  @keyframes slideInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .step-circle {
    border-width: 1px;
  }
  
  .signup-container input[type="text"],
  .signup-container input[type="email"],
  .signup-container input[type="password"] {
    border-width: 1px;
  }
}

/* Accessibility improvements for mobile */
@media (max-width: 768px) {
  /* Ensure sufficient color contrast */
  .step-label {
    font-family: 'Gabarito', sans-serif;
    font-weight: 500;
    letter-spacing: 0.2px;
    color: rgba(255, 255, 255, 0.9);
  }
  
  .step-indicator.active .step-label {
    font-weight: 600;
    color: #4CAF50 !important;
  }
  
  .step-indicator.completed .step-label {
    font-weight: 600;
    color: #4CAF50 !important;
  }
  
  .step-indicator.upcoming .step-label {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
  }
  
  /* Improve focus visibility */
  .signup-container input:focus,
  .signup-container .btn-primary:focus {
    outline: 2px solid #4CAF50;
    outline-offset: 2px;
  }
  
  /* Apply Gabarito font to all text elements */
  .signup-container label {
    font-family: 'Gabarito', sans-serif;
    font-weight: 600;
  }
  
  .signup-container input[type="text"],
  .signup-container input[type="email"],
  .signup-container input[type="password"] {
    font-family: 'Gabarito', sans-serif;
    font-weight: 400;
  }
  
  .signup-container .btn-primary {
    font-family: 'Gabarito', sans-serif;
    font-weight: 600;
  }
  
  .signup-container h3 {
    font-family: 'Gabarito', sans-serif;
    font-weight: 600;
  }
  
  .signup-container p {
    font-family: 'Gabarito', sans-serif;
    font-weight: 400;
  }
  
  .signup-container .footer-text {
    font-family: 'Gabarito', sans-serif;
    font-weight: 400;
  }
  
  .checkbox-group {
    font-family: 'Gabarito', sans-serif;
    font-weight: 400;
  }
  
  #password-requirements {
    font-family: 'Gabarito', sans-serif;
    font-weight: 400;
  }
  
  /* Better error message visibility */
  .error-message {
    font-size: 12px;
    margin-top: 4px;
    display: block;
    color: #ff6b6b;
  }
}
