/* 2FA Page Styles */
body.qcc-auth .auth-page {
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow-x: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body.qcc-auth .auth-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

body.qcc-auth .auth-background-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e2f49 0%, #F85647 100%);
}

body.qcc-auth .auth-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 47, 73, 0.8);
}

body.qcc-auth .auth-container {
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Auth Card */
body.qcc-auth .auth-card {
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 500px;
    margin: 0 auto;
}

body.qcc-auth .auth-card-body {
    padding: 3rem 2.5rem;
}

/* Security Icon */
body.qcc-auth .security-icon-circle {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, #F85647 0%, #e74536 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 4px 15px rgba(248, 86, 71, 0.3);
}

/* Headers */
body.qcc-auth .auth-title {
    color: #1e2f49;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

body.qcc-auth .auth-subtitle {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

body.qcc-auth .user-info {
    background: #f8f9fa;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    display: inline-block;
}

/* Code Input */
body.qcc-auth .code-input-container {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin: 0 auto;
}

body.qcc-auth .code-input {
    width: 3rem;
    height: 3rem;
    border: 2px solid #ced4da;
    border-radius: 0.5rem;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    background: #fff;
    transition: all 0.3s ease;
}

body.qcc-auth .code-input:focus {
    outline: none;
    border-color: #F85647;
    box-shadow: 0 0 0 3px rgba(248, 86, 71, 0.1);
    transform: scale(1.05);
}

body.qcc-auth .code-input.is-invalid {
    border-color: #dc3545;
    animation: shake 0.5s ease-in-out;
}

body.qcc-auth .code-input:not(:placeholder-shown) {
    border-color: #28a745;
    color: #1e2f49;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Form Elements */
body.qcc-auth .btn-primary {
    background-color: #F85647;
    border-color: #F85647;
    font-weight: 500;
    padding: 0.75rem 2rem;
}

body.qcc-auth .btn-primary:hover {
    background-color: #e74536;
    border-color: #e74536;
}

body.qcc-auth .btn-primary:disabled {
    background-color: #6c757d;
    border-color: #6c757d;
}

body.qcc-auth .btn-link {
    color: #F85647;
    text-decoration: none;
    font-weight: 500;
}

body.qcc-auth .btn-link:hover {
    color: #e74536;
}

/* Resend Section */
body.qcc-auth .resend-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

/* Alternative Methods */
body.qcc-auth .alternative-methods {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin: 0 -0.5rem;
}

/* Back Link */
body.qcc-auth .auth-back a {
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

body.qcc-auth .auth-back a:hover {
    color: #F85647;
}

/* Loading Overlay */
body.qcc-auth .loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

body.qcc-auth .loading-spinner {
    text-align: center;
}

body.qcc-auth .loading-spinner .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
}

/* Mobile Responsive */
@media (max-width: 575.98px) {
    body.qcc-auth .auth-card-body {
        padding: 2rem 1.5rem;
    }

    body.qcc-auth .auth-title {
        font-size: 1.5rem;
    }

    body.qcc-auth .auth-subtitle {
        font-size: 0.875rem;
    }

    body.qcc-auth .code-input {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }

    body.qcc-auth .code-input-container {
        gap: 0.5rem;
    }

    body.qcc-auth .security-icon-circle {
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
    }

    body.qcc-auth .alternative-methods {
        margin: 0 -1rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    body.qcc-auth .code-input {
        transition: none;
    }

    body.qcc-auth .code-input:focus {
        transform: none;
    }

    body.qcc-auth .code-input.is-invalid {
        animation: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    body.qcc-auth .auth-card {
        border: 2px solid #000;
    }

    body.qcc-auth .code-input {
        border-width: 3px;
    }

    body.qcc-auth .security-icon-circle {
        border: 2px solid #fff;
    }
}