/* =============================================================================
   REGISTER LANDSCAPE RESPONSIVE STYLES
   Mobile landscape-specific optimizations for registration pages
   Designed to work alongside register-mobile-responsive.css
   ============================================================================= */

/* =============================================================================
   BASE LANDSCAPE OPTIMIZATIONS (small screens only - limited height)
   ============================================================================= */

@media (orientation: landscape) and (max-height: 600px) and (max-width: 1247px) {
    .register_container {
        padding: 0.75rem;
        margin: 0.5rem auto;
    }
    
    .register_form {
        width: 100%;
        max-width: 550px;
        padding: 1rem;
    }
    
    .register_title {
        font-size: 18px;
        margin-bottom: 1rem;
    }
    
    /* Compact bird container */
    .register_bird_container {
        height: 50px;
        margin: 0.5rem auto 1rem;
    }
    
    .register_bird_img {
        max-height: 40px;
    }
    
    .register_bird_text {
        font-size: 0.75rem;
    }
    
    /* Form groups compact */
    .register_form_group {
        margin-bottom: 0.75rem;
    }
    
    .register_form_label {
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
    }
    
    .register_form_control,
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"] {
        padding: 0.5rem;
        font-size: 14px;
    }
    
    .register_help_text {
        font-size: 0.75rem;
        margin-top: 0.25rem;
    }
    
    /* Password requirements compact */
    .register_password_requirements {
        padding: 0.75rem;
        margin-top: 0.375rem;
        margin-bottom: 0.75rem;
    }
    
    .register_password_requirements p {
        font-size: 0.75rem;
        margin-bottom: 0.375rem;
    }
    
    .register_password_requirements ul li {
        font-size: 0.7rem;
        margin-bottom: 2px;
    }
    
    /* Checkbox wrapper compact */
    .checkbox-wrapper {
        padding: 0.375rem 0;
    }
    
    .checkbox-wrapper label {
        font-size: 0.75rem;
    }
    
    /* Toggle container compact */
    .register_toggle_container {
        max-width: 320px;
    }
    
    .register_toggle_label {
        font-size: 0.75rem;
        padding: 0.4rem 0.2rem;
    }
    
    .register_toggle_help_text {
        font-size: 0.7rem;
        margin-top: 0.375rem;
    }
    
    /* Button compact */
    .register_btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .register_login_link {
        font-size: 0.8rem;
        padding-top: 0.75rem;
        margin-top: 1rem;
    }
    
    /* Modal compact */
    .modal-content {
        width: 90%;
        margin: 3% auto;
        max-height: 85vh;
    }
    
    .modal-header {
        padding: 8px 12px;
    }
    
    .modal-header h2 {
        font-size: 1.1rem;
    }
    
    .modal-body {
        padding: 12px;
    }
    
    .modal-footer {
        padding: 8px 12px;
    }
    
    .modal-agree-btn {
        padding: 8px 12px;
    }
    
    .modal-close {
        font-size: 18px;
    }
}

/* =============================================================================
   TABLET LANDSCAPE (768px to 1247px width) - More space available
   ============================================================================= */

@media (orientation: landscape) and (min-width: 768px) and (max-width: 1247px) and (max-height: 600px) {
    .register_container {
        padding: 1rem;
        margin: 0.75rem auto;
        max-width: 900px;
    }
    
    .register_form {
        width: 100%;
        max-width: 650px;
        padding: 1.25rem;
    }
    
    .register_title {
        font-size: 22px;
        margin-bottom: 1.25rem;
    }
    
    /* Better bird container */
    .register_bird_container {
        height: 70px;
        margin: 0.75rem auto 1.25rem;
    }
    
    .register_bird_img {
        max-height: 55px;
    }
    
    .register_bird_text {
        font-size: 0.85rem;
    }
    
    /* Keep horizontal layout for tablets when possible */
    .register_form_group {
        flex-direction: row;
        align-items: flex-start;
        margin-bottom: 1rem;
    }
    
    .register_form_label {
        width: 120px;
        font-size: 0.85rem;
        padding-right: 10px;
        padding-top: 0.5rem;
        text-align: left;
        margin-bottom: 0;
    }
    
    .register_input_container {
        width: calc(100% - 130px);
    }
    
    .register_form_control,
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"] {
        padding: 0.625rem;
        font-size: 15px;
    }
    
    .register_help_text {
        font-size: 0.8rem;
        margin-top: 0.375rem;
    }
    
    /* Password requirements with offset */
    .register_password_requirements {
        margin-left: 120px;
        width: calc(100% - 120px);
        padding: 1rem;
        margin-top: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .register_password_requirements p {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .register_password_requirements ul li {
        font-size: 0.75rem;
        margin-bottom: 3px;
    }
    
    /* Checkbox with offset */
    .checkbox-wrapper {
        margin-left: 70px;
        padding: 0.5rem 0;
    }
    
    .checkbox-wrapper label {
        font-size: 0.8rem;
    }
    
    /* Toggle improvements */
    .register_toggle_container {
        max-width: 400px;
    }
    
    .register_toggle_label {
        font-size: 0.8rem;
        padding: 0.5rem 0.3rem;
    }
    
    .register_toggle_help_text {
        font-size: 0.75rem;
        margin-top: 0.5rem;
    }
    
    /* Button sizing */
    .register_btn {
        width: 220px;
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
    
    .register_login_link {
        font-size: 0.85rem;
        padding-top: 1rem;
        margin-top: 1.25rem;
    }
    
    /* Modal improvements */
    .modal-content {
        width: 80%;
        max-width: 500px;
        margin: 5% auto;
        max-height: 80vh;
    }
    
    .modal-header {
        padding: 12px 15px;
    }
    
    .modal-header h2 {
        font-size: 1.2rem;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .modal-footer {
        padding: 12px 15px;
    }
    
    .modal-agree-btn {
        width: auto;
        min-width: 120px;
        padding: 10px 15px;
    }
    
    .modal-close {
        font-size: 20px;
    }
}

/* =============================================================================
   PHONE LANDSCAPE (480px to 767px width) - Moderate space
   ============================================================================= */

@media (orientation: landscape) and (min-width: 480px) and (max-width: 767px) and (max-height: 500px) {
    .register_container {
        padding: 0.5rem;
        margin: 0.375rem auto;
    }
    
    .register_form {
        width: 100%;
        max-width: 450px;
        padding: 0.75rem;
    }
    
    .register_title {
        font-size: 16px;
        margin-bottom: 0.75rem;
    }
    
    /* Very compact bird */
    .register_bird_container {
        height: 40px;
        margin: 0.375rem auto 0.75rem;
    }
    
    .register_bird_img {
        max-height: 30px;
    }
    
    .register_bird_text {
        font-size: 0.7rem;
    }
    
    /* Try horizontal layout on wider phones */
    .register_form_group {
        flex-direction: row;
        align-items: flex-start;
        margin-bottom: 0.75rem;
    }
    
    .register_form_label {
        width: 100px;
        font-size: 0.75rem;
        padding-right: 8px;
        padding-top: 0.375rem;
        text-align: left;
        margin-bottom: 0;
    }
    
    .register_input_container {
        width: calc(100% - 108px);
    }
    
    .register_form_control,
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"] {
        padding: 0.375rem;
        font-size: 13px;
    }
    
    .register_help_text {
        font-size: 0.7rem;
        margin-top: 0.25rem;
    }
    
    /* Password requirements with offset */
    .register_password_requirements {
        margin-left: 100px;
        width: calc(100% - 100px);
        padding: 0.5rem;
        margin-top: 0.375rem;
        margin-bottom: 0.75rem;
    }
    
    .register_password_requirements p {
        font-size: 0.7rem;
        margin-bottom: 0.375rem;
    }
    
    .register_password_requirements ul li {
        font-size: 0.65rem;
        margin-bottom: 2px;
    }
    
    /* Checkbox with offset */
    .checkbox-wrapper {
        margin-left: 60px;
        padding: 0.375rem 0;
    }
    
    .checkbox-wrapper label {
        font-size: 0.7rem;
    }
    
    /* Toggle compact */
    .register_toggle_container {
        max-width: 280px;
    }
    
    .register_toggle_label {
        font-size: 0.7rem;
        padding: 0.375rem 0.2rem;
    }
    
    .register_toggle_help_text {
        font-size: 0.65rem;
        margin-top: 0.375rem;
    }
    
    /* Button compact */
    .register_btn {
        width: 180px;
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .register_login_link {
        font-size: 0.75rem;
        padding-top: 0.5rem;
        margin-top: 0.75rem;
    }
    
    /* Modal compact */
    .modal-content {
        width: 85%;
        margin: 2% auto;
        max-height: 90vh;
    }
    
    .modal-header {
        padding: 6px 10px;
    }
    
    .modal-header h2 {
        font-size: 1rem;
    }
    
    .modal-body {
        padding: 10px;
        font-size: 0.8rem;
    }
    
    .modal-footer {
        padding: 6px 10px;
    }
    
    .modal-agree-btn {
        width: 100%;
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .modal-close {
        font-size: 16px;
    }
}

/* =============================================================================
   SMALL PHONE LANDSCAPE (320px to 479px width) - Very limited space
   ============================================================================= */

@media (orientation: landscape) and (min-width: 320px) and (max-width: 479px) and (max-height: 400px) {
    .register_container {
        padding: 0.375rem;
        margin: 0.25rem auto;
    }
    
    .register_form {
        width: 100%;
        max-width: 380px;
        padding: 0.5rem;
    }
    
    .register_title {
        font-size: 14px;
        margin-bottom: 0.5rem;
    }
    
    /* Minimal bird */
    .register_bird_container {
        height: 30px;
        margin: 0.25rem auto 0.5rem;
    }
    
    .register_bird_img {
        max-height: 25px;
    }
    
    .register_bird_text {
        font-size: 0.65rem;
    }
    
    /* Stack vertically due to space constraints */
    .register_form_group {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 0.5rem;
    }
    
    .register_form_label {
        width: 100%;
        font-size: 0.7rem;
        margin-bottom: 0.125rem;
        padding-right: 0;
        padding-top: 0;
        text-align: left;
    }
    
    .register_input_container {
        width: 100%;
    }
    
    .register_form_control,
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"] {
        padding: 0.25rem;
        font-size: 12px;
    }
    
    .register_help_text {
        font-size: 0.65rem;
        margin-top: 0.125rem;
    }
    
    /* Password requirements full width */
    .register_password_requirements {
        margin-left: 0;
        width: 100%;
        padding: 0.375rem;
        margin-top: 0.25rem;
        margin-bottom: 0.5rem;
    }
    
    .register_password_requirements p {
        font-size: 0.65rem;
        margin-bottom: 0.25rem;
    }
    
    .register_password_requirements ul li {
        font-size: 0.6rem;
        margin-bottom: 1px;
    }
    
    /* Checkbox no offset */
    .checkbox-wrapper {
        margin-left: 0;
        padding: 0.25rem 0;
    }
    
    .checkbox-wrapper label {
        font-size: 0.65rem;
    }
    
    /* Toggle minimal */
    .register_toggle_container {
        max-width: 100%;
        width: 100%;
    }
    
    .register_toggle_label {
        font-size: 0.65rem;
        padding: 0.25rem 0.15rem;
    }
    
    .register_toggle_help_text {
        font-size: 0.6rem;
        margin-top: 0.25rem;
    }
    
    /* Button full width */
    .register_btn {
        width: 100%;
        padding: 0.375rem;
        font-size: 0.8rem;
    }
    
    .register_login_link {
        font-size: 0.7rem;
        padding-top: 0.375rem;
        margin-top: 0.5rem;
    }
    
    /* Modal minimal */
    .modal-content {
        width: 95%;
        margin: 1% auto;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 5px 8px;
    }
    
    .modal-header h2 {
        font-size: 0.9rem;
    }
    
    .modal-body {
        padding: 8px;
        font-size: 0.7rem;
    }
    
    .modal-footer {
        padding: 5px 8px;
    }
    
    .modal-agree-btn {
        width: 100%;
        padding: 5px 8px;
        font-size: 0.75rem;
    }
    
    .modal-close {
        font-size: 14px;
    }
}

/* =============================================================================
   VERY SMALL PHONE LANDSCAPE (under 320px width) - Extreme constraints
   ============================================================================= */

@media (orientation: landscape) and (max-width: 319px) and (max-height: 350px) {
    .register_container {
        padding: 0.25rem;
        margin: 0.125rem auto;
    }
    
    .register_form {
        width: 100%;
        padding: 0.375rem;
    }
    
    .register_title {
        font-size: 13px;
        margin-bottom: 0.375rem;
    }
    
    /* Ultra-minimal bird */
    .register_bird_container {
        height: 25px;
        margin: 0.125rem auto 0.375rem;
    }
    
    .register_bird_img {
        max-height: 20px;
    }
    
    .register_bird_text {
        font-size: 0.6rem;
    }
    
    /* Ultra-compact form */
    .register_form_group {
        margin-bottom: 0.375rem;
    }
    
    .register_form_label {
        font-size: 0.65rem;
        margin-bottom: 0.125rem;
    }
    
    .register_form_control,
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"] {
        padding: 0.125rem;
        font-size: 11px;
    }
    
    .register_help_text {
        font-size: 0.6rem;
        margin-top: 0.125rem;
    }
    
    /* Password requirements ultra-compact */
    .register_password_requirements {
        padding: 0.25rem;
        margin-top: 0.125rem;
        margin-bottom: 0.375rem;
    }
    
    .register_password_requirements p {
        font-size: 0.6rem;
        margin-bottom: 0.125rem;
    }
    
    .register_password_requirements ul li {
        font-size: 0.55rem;
        margin-bottom: 1px;
    }
    
    .checkbox-wrapper {
        padding: 0.125rem 0;
    }
    
    .checkbox-wrapper label {
        font-size: 0.6rem;
    }
    
    .register_toggle_label {
        font-size: 0.6rem;
        padding: 0.125rem 0.1rem;
    }
    
    .register_toggle_help_text {
        font-size: 0.55rem;
        margin-top: 0.125rem;
    }
    
    .register_btn {
        padding: 0.25rem;
        font-size: 0.75rem;
    }
    
    .register_login_link {
        font-size: 0.65rem;
        padding-top: 0.25rem;
        margin-top: 0.375rem;
    }
    
    /* Modal ultra-minimal */
    .modal-content {
        width: 98%;
        margin: 0.5% auto;
        max-height: 98vh;
    }
    
    .modal-header {
        padding: 3px 5px;
    }
    
    .modal-header h2 {
        font-size: 0.8rem;
    }
    
    .modal-body {
        padding: 5px;
        font-size: 0.65rem;
    }
    
    .modal-footer {
        padding: 3px 5px;
    }
    
    .modal-agree-btn {
        padding: 3px 5px;
        font-size: 0.7rem;
    }
    
    .modal-close {
        font-size: 12px;
    }
}

/* =============================================================================
   LANDSCAPE SPECIFIC ENHANCEMENTS
   ============================================================================= */

@media (orientation: landscape) and (max-height: 500px) and (max-width: 1247px) {
    /* Enhanced form focus states for landscape */
    .register_form_control:focus,
    input[type="text"]:focus,
    input[type="email"]:focus,
    input[type="password"]:focus,
    input[type="tel"]:focus {
        border-color: var(--primary-color, #438d9a);
        box-shadow: 0 0 0 2px rgba(67, 141, 154, 0.2);
        outline: none;
    }
    
    /* Better button focus states */
    .register_btn:focus,
    .modal-agree-btn:focus {
        outline: 2px solid var(--primary-color, #438d9a);
        outline-offset: 2px;
    }
    
    /* Toggle focus improvements */
    .register_toggle_label:focus {
        outline: 2px solid var(--primary-color, #438d9a);
        outline-offset: 2px;
    }
    
    /* Checkbox focus improvements */
    .checkbox-wrapper input[type="checkbox"]:focus {
        outline: 2px solid var(--primary-color, #438d9a);
        outline-offset: 2px;
    }
    
    /* Password requirements improvements */
    .register_password_requirements ul li.valid {
        color: #10b981;
        font-weight: 500;
    }
    
    .register_password_requirements ul li.invalid {
        color: #ef4444;
    }
    
    /* Modal scroll improvements */
    .modal-content {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    /* Better modal scrollbars */
    .modal-content::-webkit-scrollbar {
        width: 4px;
    }
    
    .modal-content::-webkit-scrollbar-track {
        background: #f1f5f9;
    }
    
    .modal-content::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 2px;
    }
}

/* =============================================================================
   ACCESSIBILITY IMPROVEMENTS FOR LANDSCAPE
   ============================================================================= */

@media (orientation: landscape) and (max-height: 500px) and (max-width: 1247px) {
    /* Ensure minimum touch targets */
    .register_btn,
    .modal-agree-btn,
    .modal-close,
    input[type="checkbox"],
    input[type="radio"] {
        min-height: 22px;
        min-width: 22px;
    }
    
    /* Enhanced error states */
    .register_form_control.error,
    input.error {
        border-color: #ef4444;
        box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
    }
    
    .register_error_message {
        font-size: 0.7rem;
        color: #ef4444;
        margin-top: 0.25rem;
        display: block;
    }
    
    /* Success states */
    .register_form_control.success,
    input.success {
        border-color: #10b981;
        box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
    }
    
    /* Loading states */
    .register_btn:disabled,
    .modal-agree-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }
    
    .register_btn.loading::after {
        content: "";
        display: inline-block;
        width: 12px;
        height: 12px;
        border: 2px solid transparent;
        border-top: 2px solid currentColor;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin-left: 0.5rem;
    }
    
    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }
}

/* =============================================================================
   PREVENT HORIZONTAL OVERFLOW IN LANDSCAPE
   ============================================================================= */

@media (orientation: landscape) and (max-width: 1247px) {
    .register_container,
    .register_form,
    .register_form_group,
    .register_input_container,
    .register_password_requirements,
    .checkbox-wrapper,
    .register_toggle_container,
    .modal-content {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Text overflow prevention */
    .register_form_label,
    .register_help_text,
    .register_toggle_help_text,
    .checkbox-wrapper label,
    .register_password_requirements p {
        word-wrap: break-word;
        overflow-wrap: break-word;
        min-width: 0;
    }
    
    /* Input overflow prevention */
    .register_form_control,
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"] {
        min-width: 0;
        max-width: 100%;
    }
    
    /* Button overflow prevention */
    .register_btn,
    .modal-agree-btn {
        min-width: 0;
        word-wrap: break-word;
        text-overflow: ellipsis;
    }
}

/* =============================================================================
   SAFE AREA ADJUSTMENTS FOR LANDSCAPE NOTCHED DEVICES
   ============================================================================= */

@supports (padding: max(0px)) {
    @media (orientation: landscape) and (max-width: 1247px) {
        .register_container {
            padding-left: max(0.5rem, env(safe-area-inset-left));
            padding-right: max(0.5rem, env(safe-area-inset-right));
        }
        
        .modal {
            padding-left: max(1rem, env(safe-area-inset-left));
            padding-right: max(1rem, env(safe-area-inset-right));
        }
        
        .register_form {
            margin-left: max(0rem, env(safe-area-inset-left));
            margin-right: max(0rem, env(safe-area-inset-right));
        }
    }
}

/* =============================================================================
   LANDSCAPE TOUCH OPTIMIZATIONS
   ============================================================================= */

@media (orientation: landscape) and (hover: none) and (max-width: 1247px) {
    /* Remove hover effects that don't work on touch */
    .register_btn:hover,
    .modal-agree-btn:hover,
    .register_toggle_label:hover {
        transform: none;
        background-color: initial;
    }
    
    /* Enhanced active states for touch */
    .register_btn:active,
    .modal-agree-btn:active {
        transform: scale(0.98);
        opacity: 0.8;
    }
    
    .register_form_control:active,
    input:active {
        border-color: var(--primary-color, #438d9a);
    }
    
    /* Better toggle active states */
    .register_toggle_label:active {
        background-color: rgba(67, 141, 154, 0.1);
    }
}

/* =============================================================================
   LANDSCAPE ANIMATION OPTIMIZATIONS
   ============================================================================= */

@media (orientation: landscape) and (max-width: 1247px) {
    /* Faster transitions for better perceived performance */
    .register_container,
    .register_form,
    .register_form_control,
    .register_btn,
    .modal-content,
    input {
        transition-duration: 0.15s;
    }
    
    /* Smooth modal animations */
    .modal.show .modal-content {
        animation: landscapeModalSlideIn 0.2s ease-out;
    }
    
    @keyframes landscapeModalSlideIn {
        from {
            opacity: 0;
            transform: translateY(-15px) scale(0.95);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }
    
    /* Form validation animations */
    .register_form_control.error {
        animation: landscapeShake 0.3s ease-in-out;
    }
    
    @keyframes landscapeShake {
        0%, 100% { transform: translateX(0); }
        25% { transform: translateX(-5px); }
        75% { transform: translateX(5px); }
    }
    
    /* Toggle smooth transitions */
    .register_toggle_container {
        transition: all 0.2s ease;
    }
    
    /* Password requirements smooth updates */
    .register_password_requirements ul li {
        transition: color 0.2s ease;
    }
}

/* =============================================================================
   LANDSCAPE MODAL SPECIFIC OPTIMIZATIONS
   ============================================================================= */

@media (orientation: landscape) and (max-height: 500px) and (max-width: 1247px) {
    /* Modal positioning for landscape */
    .modal {
        align-items: flex-start;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    .modal-content {
        max-height: calc(100vh - 2rem);
        overflow-y: auto;
        width: 90%;
        margin: 0 auto;
    }
    
    /* Modal header sticky */
    .modal-header {
        position: sticky;
        top: 0;
        background: white;
        z-index: 10;
        border-bottom: 1px solid #e5e7eb;
    }
    
    /* Modal footer sticky */
    .modal-footer {
        position: sticky;
        bottom: 0;
        background: white;
        z-index: 10;
        border-top: 1px solid #e5e7eb;
    }
    
    /* Modal body optimized for scrolling */
    .modal-body {
        padding: 0.75rem;
        line-height: 1.4;
    }
    
    .modal-body h3 {
        font-size: 0.9rem;
        margin: 0.75rem 0 0.5rem 0;
        color: var(--primary-color, #438d9a);
    }
    
    .modal-body p {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
        text-align: justify;
    }
    
    .modal-body ul {
        margin: 0.5rem 0;
        padding-left: 1rem;
    }
    
    .modal-body ul li {
        font-size: 0.75rem;
        margin-bottom: 0.25rem;
        line-height: 1.3;
    }
    
    /* Modal close button optimization */
    .modal-close {
        position: sticky;
        top: 0.5rem;
        right: 0.5rem;
        z-index: 11;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 50%;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        backdrop-filter: blur(2px);
    }
    
    /* Terms and conditions specific styling */
    .terms-section {
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
        border-bottom: 1px solid #f3f4f6;
    }
    
    .terms-section:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }
    
    /* Privacy policy specific styling */
    .privacy-highlight {
        background-color: #fef3c7;
        padding: 0.5rem;
        border-radius: 4px;
        margin: 0.5rem 0;
        border-left: 3px solid #f59e0b;
    }
    
    .privacy-highlight p {
        margin: 0;
        font-weight: 500;
        color: #92400e;
    }
}

/* =============================================================================
   LANDSCAPE FORM VALIDATION ENHANCEMENTS
   ============================================================================= */

@media (orientation: landscape) and (max-height: 500px) and (max-width: 1247px) {
    /* Real-time validation styling */
    .register_form_control.checking {
        border-color: #f59e0b;
        box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
    }
    
    .register_form_control.checking::after {
        content: "";
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        width: 12px;
        height: 12px;
        border: 2px solid #f59e0b;
        border-top: 2px solid transparent;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }
    
    /* Password strength indicator */
    .password-strength-indicator {
        display: flex;
        gap: 2px;
        margin-top: 0.25rem;
        height: 3px;
    }
    
    .password-strength-indicator .strength-bar {
        flex: 1;
        background-color: #e5e7eb;
        border-radius: 1px;
        transition: background-color 0.2s ease;
    }
    
    .password-strength-indicator .strength-bar.active {
        background-color: #ef4444;
    }
    
    .password-strength-indicator .strength-bar.active.medium {
        background-color: #f59e0b;
    }
    
    .password-strength-indicator .strength-bar.active.strong {
        background-color: #10b981;
    }
    
    /* Email validation feedback */
    .email-validation-feedback {
        font-size: 0.7rem;
        margin-top: 0.25rem;
        padding: 0.25rem 0.5rem;
        border-radius: 3px;
        display: none;
    }
    
    .email-validation-feedback.valid {
        background-color: #ecfdf5;
        color: #065f46;
        border: 1px solid #10b981;
        display: block;
    }
    
    .email-validation-feedback.invalid {
        background-color: #fef2f2;
        color: #991b1b;
        border: 1px solid #ef4444;
        display: block;
    }
    
    /* Form progress indicator */
    .form-progress {
        display: flex;
        justify-content: space-between;
        margin-bottom: 1rem;
        padding: 0.5rem 0;
    }
    
    .form-progress .progress-step {
        flex: 1;
        height: 2px;
        background-color: #e5e7eb;
        margin: 0 1px;
        border-radius: 1px;
        transition: background-color 0.3s ease;
    }
    
    .form-progress .progress-step.completed {
        background-color: var(--primary-color, #438d9a);
    }
    
    .form-progress .progress-step.current {
        background-color: #f59e0b;
    }
}

/* =============================================================================
   LANDSCAPE ERROR HANDLING AND FEEDBACK
   ============================================================================= */

@media (orientation: landscape) and (max-height: 500px) and (max-width: 1247px) {
    /* Global error message */
    .register_global_error {
        background-color: #fef2f2;
        border: 1px solid #fca5a5;
        color: #991b1b;
        padding: 0.75rem;
        border-radius: 4px;
        margin-bottom: 1rem;
        font-size: 0.8rem;
        display: none;
    }
    
    .register_global_error.show {
        display: block;
        animation: landscapeErrorSlideIn 0.3s ease-out;
    }
    
    @keyframes landscapeErrorSlideIn {
        from {
            opacity: 0;
            transform: translateY(-10px);
            max-height: 0;
        }
        to {
            opacity: 1;
            transform: translateY(0);
            max-height: 100px;
        }
    }
    
    /* Success message */
    .register_success_message {
        background-color: #ecfdf5;
        border: 1px solid #a7f3d0;
        color: #065f46;
        padding: 0.75rem;
        border-radius: 4px;
        margin-bottom: 1rem;
        font-size: 0.8rem;
        display: none;
    }
    
    .register_success_message.show {
        display: block;
        animation: landscapeSuccessSlideIn 0.3s ease-out;
    }
    
    @keyframes landscapeSuccessSlideIn {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* Field-specific error messages */
    .field-error {
        font-size: 0.7rem;
        color: #ef4444;
        margin-top: 0.25rem;
        display: block;
        min-height: 1rem;
        transition: opacity 0.2s ease;
    }
    
    .field-error:empty {
        opacity: 0;
    }
    
    /* Network error handling */
    .network-error {
        background-color: #fffbeb;
        border: 1px solid #fcd34d;
        color: #92400e;
        padding: 0.75rem;
        border-radius: 4px;
        margin-bottom: 1rem;
        font-size: 0.8rem;
        display: none;
    }
    
    .network-error.show {
        display: block;
    }
    
    .retry-button {
        background-color: #f59e0b;
        color: white;
        border: none;
        padding: 0.375rem 0.75rem;
        border-radius: 3px;
        font-size: 0.75rem;
        margin-top: 0.5rem;
        cursor: pointer;
    }
    
    .retry-button:hover {
        background-color: #d97706;
    }
}

/* =============================================================================
   HIGH DPI DISPLAY OPTIMIZATIONS FOR LANDSCAPE
   ============================================================================= */

@media (orientation: landscape) and (-webkit-min-device-pixel-ratio: 2) and (max-width: 1247px), 
       (orientation: landscape) and (min-resolution: 192dpi) and (max-width: 1247px) {
    .register_form {
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
        border-width: 0.5px;
    }
    
    .register_form_control,
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"] {
        border-width: 1px;
    }
    
    .modal-content {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
    
    .register_bird_img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    
    .register_password_requirements,
    .checkbox-wrapper {
        border-width: 0.5px;
    }
}

/* =============================================================================
   LANDSCAPE PERFORMANCE OPTIMIZATIONS
   ============================================================================= */

@media (orientation: landscape) and (max-width: 1247px) {
    /* GPU acceleration for smooth interactions */
    .register_form,
    .modal-content,
    .register_btn,
    .modal-agree-btn {
        transform: translateZ(0);
        will-change: transform, opacity;
    }
    
    /* Optimize repaints */
    .register_form_control,
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"] {
        backface-visibility: hidden;
    }
    
    /* Efficient transitions */
    .register_container * {
        transition-property: transform, opacity, background-color, border-color, box-shadow;
        transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    /* Reduce motion for users who prefer it */
    @media (prefers-reduced-motion: reduce) {
        .register_container *,
        .modal-content,
        .register_btn {
            transition-duration: 0.01ms !important;
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
        }
    }
}

/* =============================================================================
   LANDSCAPE PRINT OPTIMIZATIONS
   ============================================================================= */

@media print and (orientation: landscape) and (max-width: 1247px) {
    .register_container {
        max-width: none;
        padding: 1rem;
        margin: 0;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .register_form {
        max-width: none;
        padding: 1rem;
        box-shadow: none;
        border: none;
    }
    
    .register_bird_container,
    .register_btn,
    .modal,
    .register_toggle_container {
        display: none !important;
    }
    
    .register_form_group {
        flex-direction: row !important;
        align-items: baseline;
        margin-bottom: 0.75rem;
        break-inside: avoid;
    }
    
    .register_form_label {
        width: 150px !important;
        font-size: 0.9rem;
        color: #000;
        margin-bottom: 0;
    }
    
    .register_input_container {
        width: calc(100% - 160px) !important;
    }
    
    .register_form_control,
    input {
        border: 1px solid #999;
        background: white;
        padding: 0.5rem;
    }
    
    .register_password_requirements {
        margin-left: 150px !important;
        width: calc(100% - 150px) !important;
        padding: 0.75rem;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
    
    .checkbox-wrapper {
        margin-left: 150px !important;
        break-inside: avoid;
    }
    
    .register_title {
        font-size: 1.5rem;
        color: #000;
        margin-bottom: 1rem;
    }
    
    .register_help_text {
        color: #666;
        font-size: 0.8rem;
    }
}