/**
 * Authenticating Page - Fresh Implementation
 * Completely new logic to avoid animation compounding
 */

.authenticating-page-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #ffffff !important;
}

.authenticating-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    min-height: calc(100vh - 200px);
}

/* Fresh Spinner Implementation - No Shared Code */
.loading-spinner-circle {
    width: 32px;
    height: 32px;
    position: relative;
    /* Ensure no other styles interfere */
    background: transparent;
    padding: 0;
    margin: 0;
}

.loading-spinner-circle::after {
    content: '';
    display: block;
    box-sizing: border-box;
    position: absolute;
    inset: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 3px solid #f3f3f3; /* Light grey track */
    border-top-color: #1a1a1a; /* Dark arc */
    animation: spin-circle 1s linear infinite;
}

/* Text */
.auth-text {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #555;
    margin: 0;
    opacity: 0;
    animation: fade-in-text 0.5s ease 0.2s forwards;
}

/* Unique Animation Keyframes */
@keyframes spin-circle {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fade-in-text {
    from {
        opacity: 0;
        transform: translateY(2px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .loading-spinner-circle::after {
        animation-duration: 2s;
    }
    
    .auth-text {
        animation: none;
        opacity: 1;
    }
}
