/* Mobile Responsive Styles for Authentication Pages */

/* Base responsive adjustments */
@media (max-width: 991.98px) {
    /* Hide the left illustration on tablets and mobile */
    .authentication-wrapper .authentication-inner .d-flex.col-lg-7 {
        display: none !important;
    }
    
    /* Make the form container full width */
    .authentication-wrapper .authentication-inner .col-lg-5 {
        max-width: 100%;
        flex: 0 0 100%;
    }
}

/* Mobile specific adjustments */
@media (max-width: 767.98px) {
    /* Reduce padding on mobile */
    .authentication-wrapper .authentication-inner .d-flex.col-12 {
        padding: 1.5rem !important;
    }
    
    /* Adjust form container width */
    .authentication-wrapper .authentication-inner .w-px-400 {
        width: 100% !important;
        max-width: 100%;
    }
    
    /* Logo adjustments */
    .app-brand {
        margin-bottom: 1.5rem !important;
    }
    
    .app-brand-logo svg {
        width: 28px;
        height: 20px;
    }
    
    .app-brand-text {
        font-size: 1.25rem !important;
    }
    
    /* Heading adjustments */
    h4.mb-1 {
        font-size: 1.25rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    p.mb-4 {
        font-size: 0.875rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    /* Form elements */
    .form-label {
        font-size: 0.875rem !important;
        margin-bottom: 0.375rem !important;
    }
    
    .form-control {
        font-size: 0.875rem !important;
        padding: 0.625rem 0.875rem !important;
    }
    
    .input-group-text {
        padding: 0.625rem 0.875rem !important;
    }
    
    /* Button adjustments */
    .btn {
        font-size: 0.875rem !important;
        padding: 0.625rem 1rem !important;
    }
    
    /* Alert adjustments */
    .alert {
        font-size: 0.875rem !important;
        padding: 0.75rem 1rem !important;
    }
    
    /* Links and text */
    .text-center,
    .d-flex.justify-content-between {
        font-size: 0.875rem !important;
    }
    
    small {
        font-size: 0.75rem !important;
    }
}

/* Small mobile devices */
@media (max-width: 575.98px) {
    /* Further reduce padding */
    .authentication-wrapper .authentication-inner .d-flex.col-12 {
        padding: 1rem !important;
    }
    
    /* Adjust spacing */
    .mb-3 {
        margin-bottom: 1rem !important;
    }
    
    .mb-4 {
        margin-bottom: 1.25rem !important;
    }
    
    /* Logo */
    .app-brand {
        margin-bottom: 1rem !important;
    }
    
    .app-brand-logo svg {
        width: 24px;
        height: 18px;
    }
    
    .app-brand-text {
        font-size: 1.125rem !important;
    }
    
    /* Headings */
    h4.mb-1 {
        font-size: 1.125rem !important;
    }
    
    p.mb-4 {
        font-size: 0.8125rem !important;
    }
    
    /* Form controls */
    .form-control,
    .input-group-text {
        font-size: 0.8125rem !important;
        padding: 0.5rem 0.75rem !important;
    }
    
    /* Buttons */
    .btn {
        font-size: 0.8125rem !important;
        padding: 0.5rem 0.875rem !important;
    }
}

/* Extra small devices (landscape phones) */
@media (max-width: 479.98px) {
    .authentication-wrapper .authentication-inner .d-flex.col-12 {
        padding: 0.75rem !important;
    }
    
    .app-brand-text {
        font-size: 1rem !important;
    }
    
    h4.mb-1 {
        font-size: 1rem !important;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 600px) and (orientation: landscape) {
    .authentication-wrapper {
        min-block-size: auto;
    }
    
    .authentication-wrapper .authentication-inner {
        padding-block: 1rem;
    }
    
    .app-brand {
        margin-bottom: 0.75rem !important;
    }
    
    h4.mb-1 {
        margin-bottom: 0.25rem !important;
        padding-top: 0.5rem !important;
    }
    
    p.mb-4 {
        margin-bottom: 1rem !important;
    }
    
    .mb-3 {
        margin-bottom: 0.75rem !important;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    /* Increase tap targets */
    .form-check-input {
        width: 1.25rem;
        height: 1.25rem;
    }
    
    .form-check-label {
        padding-left: 0.25rem;
    }
    
    .input-group-text.cursor-pointer {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Make links easier to tap */
    a {
        padding: 0.25rem;
        margin: -0.25rem;
    }
    
    .btn-close {
        padding: 0.5rem;
    }
}

/* Ensure proper scrolling on small screens */
@media (max-height: 700px) {
    .authentication-wrapper {
        overflow-y: auto;
    }
    
    .authentication-inner {
        min-height: 100vh;
    }
}

/* Fix for very small screens */
@media (max-width: 359.98px) {
    .authentication-wrapper .authentication-inner .d-flex.col-12 {
        padding: 0.5rem !important;
    }
    
    .form-control,
    .input-group-text,
    .btn {
        font-size: 0.75rem !important;
    }
}
