/* ===================================
   MOBILE AUTH SCREEN FIXES
   =================================== */

/* Fix for Android phones - Login page */
@media (max-width: 768px) {
    .auth-screen {
        flex-direction: column;
        min-height: 100vh;
        height: auto;
        overflow-y: auto;
    }

    /* Left panel - Compact on mobile */
    .auth-left {
        min-height: auto;
        padding: 2rem 1.5rem;
        flex: none;
    }

    .auth-branding {
        max-width: 100%;
    }

    .brand-main {
        font-size: 2rem;
    }

    .brand-subtitle {
        font-size: 1.125rem;
    }

    .brand-tagline {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .features-list {
        display: none;
        /* Hide features on mobile to save space */
    }

    /* Right panel - Login card */
    .auth-right {
        min-height: auto;
        padding: 1.5rem;
        flex: none;
    }

    .auth-card {
        max-width: 100%;
        padding: 1.5rem;
        margin-bottom: 2rem;
        /* Space at bottom */
    }

    .auth-card-header {
        margin-bottom: 1.5rem;
    }

    .brand-logo-card img {
        width: 150px;
    }

    .auth-card-header h2 {
        font-size: 1.5rem;
    }

    .auth-card-header p {
        font-size: 0.9375rem;
    }

    /* Buttons - Larger touch targets */
    .custom-google-btn,
    .custom-demo-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        min-height: 52px;
    }

    /* Benefits section */
    .auth-benefits {
        padding: 1rem;
        gap: 0.75rem;
    }

    .benefit-item {
        font-size: 0.875rem;
    }

    /* Footer */
    .auth-footer {
        margin-top: 1.5rem;
        padding-bottom: 1rem;
    }

    .auth-footer p {
        color: #ffffff !important;
        font-weight: 600;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    }
}

/* Very small phones (320px - 360px) */
@media (max-width: 360px) {
    .auth-left {
        padding: 1.5rem 1rem;
    }

    .brand-main {
        font-size: 1.75rem;
    }

    .brand-subtitle {
        font-size: 1rem;
    }

    .brand-tagline {
        font-size: 0.9375rem;
    }

    .auth-right {
        padding: 1rem;
    }

    .auth-card {
        padding: 1.25rem;
    }

    .brand-logo-card img {
        width: 120px;
    }

    .auth-card-header h2 {
        font-size: 1.25rem;
    }

    .custom-google-btn,
    .custom-demo-btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.9375rem;
    }
}

/* Landscape mode on phones */
@media (max-height: 600px) and (orientation: landscape) {
    .auth-screen {
        flex-direction: row;
    }

    .auth-left {
        display: none;
        /* Hide branding in landscape to save space */
    }

    .auth-right {
        width: 100%;
        padding: 1rem;
    }

    .auth-card {
        padding: 1.25rem;
        max-height: 90vh;
        overflow-y: auto;
    }

    .brand-logo-card {
        margin-bottom: 1rem;
    }

    .brand-logo-card img {
        width: 100px;
    }

    .auth-card-header {
        margin-bottom: 1rem;
    }

    .auth-card-body {
        gap: 1rem;
    }

    .auth-benefits {
        padding: 0.75rem;
    }
}

/* Fix for scrolling issues */
@media (max-width: 768px) {
    body.auth-active {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .auth-screen {
        position: fixed;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Ensure buttons are always visible */
@media (max-width: 768px) {
    .auth-card-body {
        min-height: auto;
    }

    .google-btn-wrapper,
    #google-signin-button {
        width: 100%;
    }

    /* Ensure divider is visible */
    .auth-divider {
        margin: 1rem 0;
    }
}

/* Fix for very tall phones (scrolling) */
@media (max-width: 768px) and (min-height: 800px) {
    .auth-left {
        min-height: 30vh;
    }

    .auth-right {
        min-height: 70vh;
    }
}

/* Fix for short phones (content fits) */
@media (max-width: 768px) and (max-height: 700px) {
    .auth-left {
        padding: 1.5rem 1rem;
    }

    .brand-tagline {
        margin-bottom: 1rem;
    }

    .auth-card {
        padding: 1.25rem;
    }

    .auth-card-header {
        margin-bottom: 1rem;
    }

    .auth-card-body {
        gap: 1rem;
    }
}