@import 'ScanEasy.Client.x0t8hid0fp.bundle.scp.css';

/* /Components/Account/Pages/Login.razor.rz.scp.css */
/* Login Page Mobile-Responsive Styles */

/* Container - Mobile First */
.login-container[b-00t3vs6tvb] {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 16px;
}

/* Content wrapper */
.login-content[b-00t3vs6tvb] {
    width: 100%;
    max-width: 100%;
}

/* Enhanced login button styles */
[b-00t3vs6tvb] .login-button {
    position: relative;
    transition: all 0.3s ease !important;
    overflow: hidden;
    min-height: 48px; /* Touch-friendly height */
    padding: 12px 24px;
}

[b-00t3vs6tvb] .login-button-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

[b-00t3vs6tvb] .login-icon {
    font-size: 1rem;
    transition: all 0.3s ease;
}

[b-00t3vs6tvb] .login-text {
    transition: all 0.3s ease;
    font-weight: 500;
}

/* Loading spinner */
[b-00t3vs6tvb] .login-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
}

[b-00t3vs6tvb] .spinner-ring {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin-b-00t3vs6tvb 1s linear infinite;
}

@keyframes spin-b-00t3vs6tvb {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Loading state styles */
[b-00t3vs6tvb] .login-button.loading {
    background-color: #1557b0 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

[b-00t3vs6tvb] .login-button.loading .login-button-content {
    opacity: 1;
}

/* Disabled state styles */
[b-00t3vs6tvb] button:disabled {
    opacity: 0.8 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

[b-00t3vs6tvb] button:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

[b-00t3vs6tvb] input:disabled,
[b-00t3vs6tvb] .form-check-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #f8f9fa;
}

/* Enhanced header styling */
[b-00t3vs6tvb] .acc-2fa-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

[b-00t3vs6tvb] .acc-2fa-header h3 {
    margin: 0;
    color: #202124;
    font-weight: 500;
    font-size: 1.25rem;
}

[b-00t3vs6tvb] .acc-2fa-header img {
    object-fit: contain;
}

/* Improved alert styling */
[b-00t3vs6tvb] .acc-2fa-alert.danger {
    background-color: #fce8e6;
    border: 1px solid #ea4335;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

[b-00t3vs6tvb] .acc-2fa-alert.info {
    background-color: #e8f0fe;
    border: 1px solid #1a73e8;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

[b-00t3vs6tvb] .acc-2fa-alert.info .bi {
    color: #1a73e8;
    font-size: 1rem;
    flex-shrink: 0;
}

[b-00t3vs6tvb] .acc-2fa-alert.info p {
    margin: 0;
    color: #1a73e8;
    font-size: 0.9rem;
    line-height: 1.4;
}

[b-00t3vs6tvb] .acc-2fa-alert.warning {
    background-color: #fef7e0;
    border: 1px solid #f9ab00;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

[b-00t3vs6tvb] .acc-2fa-alert.warning .bi {
    color: #e37400;
    font-size: 1rem;
    flex-shrink: 0;
}

[b-00t3vs6tvb] .acc-2fa-alert.warning p {
    margin: 0;
    color: #5f4b00;
    font-size: 0.9rem;
    line-height: 1.4;
}

[b-00t3vs6tvb] .acc-2fa-alert.danger .bi {
    color: #ea4335;
    font-size: 1rem;
    flex-shrink: 0;
}

[b-00t3vs6tvb] .acc-2fa-alert.danger p {
    margin: 0;
    color: #ea4335;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Form improvements */
[b-00t3vs6tvb] .acc-2fa-form-control {
    min-height: 44px; /* Touch-friendly */
    padding: 12px 16px; /* Better touch padding */
    font-size: 16px; /* Prevents iOS zoom */
}

[b-00t3vs6tvb] .acc-2fa-form-control:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 0.2rem rgba(26, 115, 232, 0.25);
}

[b-00t3vs6tvb] .acc-2fa-form-control:disabled {
    background-color: #f8f9fa;
    border-color: #e1e5e9;
}

[b-00t3vs6tvb] .acc-2fa-form-group {
    margin-bottom: 20px; /* Better spacing on mobile */
}

/* Checkbox container */
[b-00t3vs6tvb] .remember-me-container {
    display: flex;
    align-items: center;
    min-height: 44px; /* Touch-friendly */
}

[b-00t3vs6tvb] .remember-me-container input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    cursor: pointer;
}

[b-00t3vs6tvb] .remember-me-container label {
    margin-bottom: 0;
    cursor: pointer;
    user-select: none;
}

/* Links */
[b-00t3vs6tvb] .forgot-password-link {
    color: #1a73e8 !important;
    text-decoration: none;
    display: block;
    text-align: center;
    padding: 12px; /* Touch-friendly */
    margin-top: 16px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

[b-00t3vs6tvb] .forgot-password-link:hover {
    text-decoration: underline !important;
    background-color: #f8f9fa;
}

/* Tablet breakpoint */
@media (min-width: 641px) and (max-width: 768px) {
    .login-container[b-00t3vs6tvb] {
        padding: 24px;
    }

    [b-00t3vs6tvb] .acc-2fa-header h3 {
        font-size: 1.4rem;
    }
}

/* Mobile breakpoint - smaller phones */
@media (max-width: 640px) {
    .login-container[b-00t3vs6tvb] {
        padding: 12px;
        margin-top: 1rem;
    }

    .login-content[b-00t3vs6tvb] {
        width: 100%;
    }

    [b-00t3vs6tvb] .acc-2fa-section {
        border-radius: 16px; /* Consistent with mobile standards */
    }

    [b-00t3vs6tvb] .acc-2fa-header {
        padding: 16px;
    }

    [b-00t3vs6tvb] .acc-2fa-header h3 {
        font-size: 1.1rem;
    }

    [b-00t3vs6tvb] .acc-2fa-section-content {
        padding: 16px;
    }

    [b-00t3vs6tvb] .acc-2fa-form-group {
        margin-bottom: 16px;
    }

    [b-00t3vs6tvb] .login-button {
        font-size: 1rem;
    }

    [b-00t3vs6tvb] .forgot-password-link {
        padding: 16px 12px; /* Extra touch area */
    }
}

/* Extra small phones */
@media (max-width: 360px) {
    .login-container[b-00t3vs6tvb] {
        padding: 8px;
    }

    [b-00t3vs6tvb] .acc-2fa-section-content {
        padding: 12px;
    }

    [b-00t3vs6tvb] .acc-2fa-header {
        padding: 12px;
    }

    [b-00t3vs6tvb] .acc-2fa-header h3 {
        font-size: 1rem;
    }

    [b-00t3vs6tvb] .login-button {
        padding: 12px 16px;
        font-size: 0.95rem;
    }
}
