/**
 * Livro - Login Page Mobile Fixes
 * Making the login page more minimal on mobile devices
 */

/* Mobile-specific adjustments */
@media (max-width: 992px) {
    /* Make the sidebar more minimal */
    .login-sidebar {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        max-height: 25vh;
        padding: 1.5rem;
        text-align: center;
    }
    
    /* Hide the descriptive text */
    .login-sidebar-content {
        display: none;
    }
    
    /* Make the logo more prominent */
    .login-logo {
        margin-bottom: 0;
    }
    
    .login-logo img {
        height: 70px;
        width: auto;
    }
}

/* Smaller screens */
@media (max-width: 768px) {
    /* Further simplify the form */
    .login-form-wrapper {
        padding: 1.5rem;
    }
    
    .login-header {
        margin-bottom: 1.5rem;
    }
    
    /* Simplify the SSO section */
    .sso-divider::before,
    .sso-divider::after {
        width: 30%;
    }
    
    /* Reduce spacing */
    .login-form {
        gap: 1rem;
    }
    
    /* Make the logo even more prominent */
    .login-logo img {
        height: 80px;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    /* Extremely minimal sidebar */
    .login-sidebar {
        max-height: 20vh;
        padding: 1rem;
    }
    
    /* Remove form panel styling */
    .login-form-wrapper {
        padding: 1rem 0.5rem;
        border-radius: 0;
        background-color: transparent;
        box-shadow: none;
        max-width: 100%;
    }
    
    /* Adjust form container padding */
    .login-form-container {
        padding: 1rem 0.5rem;
        background-color: #f5f7fa;
    }
    
    /* Reduce form header size */
    .login-header h1 {
        font-size: 1.5rem;
    }
    
    .login-header p {
        font-size: 0.9rem;
    }
    
    /* Simplify the form footer */
    .login-form-footer {
        margin-top: 1.5rem;
        font-size: 0.75rem;
    }
    
    /* Reduce spacing in form elements */
    .form-group label {
        font-size: 0.85rem;
    }
    
    /* Override original login styles completely for input fields */
    .login-form .input-wrapper {
        position: relative;
        width: 100%;
        height: 48px; /* Fixed height to prevent collapsing */
        border: 1px solid #ddd;
        border-radius: 8px;
        background-color: white;
        transition: border-color 0.3s, box-shadow 0.3s;
        display: flex;
        align-items: center;
        overflow: hidden; /* Prevent any content from breaking the container */
    }
    
    .login-form .input-wrapper:focus-within {
        border-color: var(--livro-cyan);
        box-shadow: 0 0 0 2px rgba(6, 174, 213, 0.2);
    }
    
    /* Target all possible input types */
    .login-form input[type="email"],
    .login-form input[type="password"],
    .login-form input[type="text"] {
        width: 100%;
        height: 100%;
        padding: 0 40px 0 40px;
        font-size: 0.9rem;
        border: none !important; /* Force no border */
        background: transparent !important; /* Force transparent background */
        outline: none !important; /* Force no outline */
        box-shadow: none !important; /* Force no box-shadow */
        -webkit-appearance: none; /* Remove default styling on iOS */
        -moz-appearance: none; /* Remove default styling on Firefox */
        appearance: none; /* Standard property */
    }
    
    /* Ensure no browser default styles are applied */
    .login-form input:focus {
        outline: none !important;
        border: none !important;
        box-shadow: none !important;
    }
    
    .input-icon {
        position: absolute;
        left: 12px;
        font-size: 18px;
        color: #999;
        pointer-events: none;
    }
    
    /* Fix password toggle button */
    .password-toggle {
        position: absolute;
        right: 12px;
        background: none;
        border: none;
        color: #999;
        z-index: 2;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
    }
    
    .password-toggle:hover {
        color: var(--livro-cerulean);
    }
    
    /* Make buttons more compact */
    .login-btn {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .sso-btn {
        padding: 10px;
        font-size: 0.9rem;
        background-color: white;
    }
    
    /* Ensure form elements stand out against the background */
    .remember-me,
    .forgot-password,
    .create-account,
    .sso-divider span {
        color: var(--livro-dark);
    }
}
