/* Combined Login/Registration Styles */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.auth-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.login-section {
    flex: 1;
    min-width: 300px;
    padding: 40px;
    background-color: #f8f9fa;
    border-right: 1px solid #e0e0e0;
}

.registration-section {
    flex: 1;
    min-width: 300px;
    padding: 40px;
    background-color: #ffffff;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h2 {
    color: #2c5530;
    font-size: 28px;
    margin-bottom: 10px;
}

.section-header p {
    color: #666;
    margin: 0;
}

.login_form, .registration_form {
    max-width: 400px;
    margin: 0 auto;
}

.login_form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.login_form input[type="text"],
.login_form input[type="email"],
.login_form input[type="password"] {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}


.form-links {
    text-align: center;
    margin-top: 20px;
}

.form-links a {
    color: #2c5530;
    text-decoration: none;
}

.form-links a:hover {
    text-decoration: underline;
}

/* Registration form styles */

.form-section {
    margin-bottom: 25px;
}

/* Remove bottom margin from last form group/row in a section to avoid extra spacing */
.form-section .form-group:last-child,
.form-section .form-row:last-child {
    margin-bottom: 0;
}

.form-section h3 {
    color: #2c5530;
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 2px solid #2c5530;
    padding-bottom: 5px;
}

.form-group.full-width {
    width: 100%;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    font-family: inherit;
    line-height: 1.5;
    vertical-align: top;
}

.form-group input,
.form-group select {
    height: 44px; /* Explicit height for alignment - inputs and selects only */
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #2c5530;
    outline: none;
}

/* Ensure consistent select styling */
.form-group select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: white;
    font-size: 14px !important;
    line-height: 1.5;
    /* Force exact same styling as input fields */
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Force select options to match input text size */
.form-group select option {
    font-size: 14px !important;
    font-family: inherit;
    line-height: 1.5;
}

/* Better alignment for form rows */
.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

/* Ensure consistent form group layout in rows */
.form-row .form-group {
    display: flex;
    flex-direction: column;
}

/* Form groups within rows don't need bottom margin since the row provides spacing */
.form-row .form-group {
    margin-bottom: 0;
}

.form-group {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

/* Ensure labels don't affect field alignment */
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
    height: auto;
    min-height: 1.6em; /* Increased to accommodate required asterisks */
    line-height: 1.4;
}

.professional-fields {
    margin-top: 10px;
}

.professional-select {
    margin-bottom: 15px;
}

.professional-select label {
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-group label {
    margin: 0;
    line-height: 1.4;
    color: #666;
    font-weight: normal;
    font-size: 14px;
}

.social-media-section h4 {
    margin-bottom: 10px;
    color: #2c5530;
}

.helper-text {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.error-message {
    color: #ca2128;
    font-size: 12px;
    margin-top: 5px;
}

.form-submit {
    text-align: center;
    margin-top: 30px;
}

/* Consolidated submit button styles */
.login_form input[type="submit"],
.form-submit input[type="submit"] {
    background-color: #2c5530;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.login_form input[type="submit"]:hover,
.form-submit input[type="submit"]:hover {
    background-color: #1e3a20;
}

.login_form input[type="submit"] {
    padding: 12px 24px;
    width: 100%;
    margin-top: 10px;
}

.form-submit input[type="submit"] {
    padding: 15px 30px;
    font-weight: bold;
}

span.required:after { 
    content: '*'; 
    color: red;
}

input.error,
select.error,
textarea.error {
    border: 2px solid #ca2128 !important;
}

/* Mobile responsive */
.mobile-toggle {
    display: none;
    text-align: center;
    padding: 20px;
    background: #2c5530;
}

.toggle-btn {
    background: none;
    border: 2px solid #fff;
    color: #fff;
    padding: 10px 20px;
    margin: 0 10px;
    border-radius: 4px;
    cursor: pointer;
}

.toggle-btn.active {
    background: #fff;
    color: #2c5530;
}

.why-bigeq {
    background: #f8f9fa;
    padding: 40px;
    margin-top: 20px;
    border-radius: 8px;
}

.why-bigeq h2 {
    color: #2c5530;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.why-bigeq p {
    color: #666;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .wide {
        margin: 0 !important;
        padding: 0 !important;
    }

    .auth-container {
        flex-direction: column;
        margin: 0 10px;
        max-width: none;
        overflow-x: hidden;
    }

    .login-section,
    .registration-section {
        min-width: auto;
        border-right: none;
        padding: 20px 15px;
        overflow-x: hidden;
    }

    .login_form,
    .registration_form {
        max-width: none;
        width: 100%;
    }

    .mobile-toggle {
        display: block;
        margin: 0 10px;
        border-radius: 8px 8px 0 0;
    }

    /* Both sections always visible on mobile - stacked vertically */
    .login-section,
    .registration-section {
        display: block;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
        margin-bottom: 20px;
    }
    
    /* On mobile, form groups in rows need bottom margin since they stack vertically */
    .form-row .form-group {
        margin-bottom: 20px;
    }
    
    /* But not the last one in a row */
    .form-row .form-group:last-child {
        margin-bottom: 0;
    }

    .checkbox-group {
        align-items: flex-start;
    }

    .checkbox-group label {
        font-size: 13px;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .section-header {
        margin-bottom: 20px;
    }

    .form-section {
        margin-bottom: 20px;
    }

    .form-section h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .why-bigeq {
        margin: 20px 10px 0;
        padding: 20px 15px;
    }

    .toggle-btn {
        padding: 8px 16px;
        margin: 0 5px;
        font-size: 14px;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .wide {
        margin: 0 !important;
        padding: 0 !important;
    }

    .auth-container {
        margin: 0 5px;
        overflow-x: hidden;
    }

    .login-section,
    .registration-section {
        padding: 15px 10px;
        overflow-x: hidden;
    }

    .login_form,
    .registration_form {
        max-width: none;
        width: 100%;
    }

    .mobile-toggle {
        margin: 0 5px;
        padding: 15px;
    }

    .toggle-btn {
        padding: 6px 12px;
        margin: 0 3px;
        font-size: 13px;
    }

    .why-bigeq {
        margin: 15px 5px 0;
        padding: 15px 10px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px;
        font-size: 14px;
    }
    
    .form-group input,
    .form-group select {
        height: 40px; /* Smaller height for mobile */
    }
    
    .form-group select {
        font-size: 14px !important;
    }
    
    .form-group select option {
        font-size: 14px !important;
    }

    .section-header h2 {
        font-size: 20px;
    }

    .section-header p {
        font-size: 14px;
    }

    .form-section h3 {
        font-size: 15px;
    }
}

/* Hide toggle buttons on desktop since they serve no purpose */
@media (min-width: 769px) {
    .mobile-toggle {
        display: none;
    }
}