/* Auth Prompt Styles */
.auth-prompt-container {
    margin-bottom: var(--try-out-spacing);
    animation: slideDownFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-prompt {
    background: linear-gradient(135deg, var(--try-out-primary-light), rgba(var(--try-out-primary-rgb), 0.05));
    border: 2px solid var(--try-out-primary);
    border-radius: var(--try-out-border-radius);
    padding: var(--try-out-spacing);
    display: flex;
    align-items: center;
    gap: var(--try-out-spacing);
    position: relative;
    overflow: hidden;
    box-shadow: var(--try-out-shadow-md);
    transition: var(--try-out-transition);
}

.auth-prompt::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 3s infinite;
}

.auth-prompt:hover {
    transform: translateY(-2px);
    box-shadow: var(--try-out-shadow-lg);
    border-color: var(--try-out-primary-hover);
}

.auth-prompt-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--try-out-primary);
    border-radius: 50%;
    color: white;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 3px 8px rgba(var(--try-out-primary-rgb), 0.4);
}

.auth-emoji {
    font-size: 24px;
    line-height: 1;
    display: inline-block;
    animation: lockPulse 2s ease-in-out infinite;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.auth-emoji.unlocking {
    animation: unlockTransform 0.6s ease-out forwards;
}

.auth-emoji.success {
    animation: successTransform 0.6s ease-out forwards;
}

.auth-prompt-content {
    flex: 1;
    min-width: 0;
}

.auth-prompt-title {
    margin: 0 0 2px 0;
    font-size: var(--try-out-font-base);
    font-weight: 600;
    color: var(--try-out-text);
    display: flex;
    align-items: center;
    gap: var(--try-out-spacing-xs);
}

.auth-prompt-description {
    margin: 0;
    font-size: var(--try-out-font-sm);
    color: var(--try-out-text-light);
    line-height: 1.4;
}

.auth-prompt-button {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: var(--try-out-spacing-xs);
    padding: var(--try-out-spacing-sm) var(--try-out-spacing-lg);
    background: var(--try-out-gradient-primary);
    color: white;
    border: none;
    border-radius: var(--try-out-border-radius);
    font-size: var(--try-out-font-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--try-out-transition);
    box-shadow: 0 3px 8px rgba(var(--try-out-primary-rgb), 0.3);
    position: relative;
    overflow: hidden;
}

.auth-prompt-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.auth-prompt-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--try-out-primary-rgb), 0.4);
}

.auth-prompt-button:active {
    transform: translateY(0);
}

.auth-prompt-button:active::before {
    width: 300px;
    height: 300px;
}

.auth-prompt-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.auth-prompt-button-icon {
    font-size: 16px;
    line-height: 1;
    display: inline-block;
    transition: var(--try-out-transition);
}

.auth-prompt-button:hover .auth-prompt-button-icon {
    transform: scale(1.2) rotate(10deg);
    animation: unlockBounce 0.5s ease-in-out;
}

.auth-prompt-button-text {
    position: relative;
    z-index: 1;
}

.auth-prompt-button-loader {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-prompt-button.loading .auth-prompt-button-icon,
.auth-prompt-button.loading .auth-prompt-button-text {
    opacity: 0;
}

.auth-prompt-button.loading .auth-prompt-button-loader {
    display: inline-block;
    font-size: 16px;
    animation: spin 1s linear infinite;
}

@keyframes unlockBounce {
    0%, 100% {
        transform: scale(1.2) rotate(10deg);
    }
    50% {
        transform: scale(1.3) rotate(-10deg);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.auth-prompt.success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(40, 167, 69, 0.05));
    border-color: var(--try-out-success);
    animation: successPulse 0.6s ease-out;
}

.auth-prompt.success .auth-prompt-icon {
    background: var(--try-out-success);
    animation: successPulse 0.6s ease-out;
}

.auth-prompt.success .auth-emoji {
    animation: successTransform 0.6s ease-out forwards;
}

.auth-prompt.error {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(220, 53, 69, 0.05));
    border-color: var(--try-out-danger);
    animation: errorShake 0.5s ease-out;
}

.auth-prompt.error .auth-prompt-icon {
    background: var(--try-out-danger);
}

/* Animations */
@keyframes slideDownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(var(--try-out-primary-rgb), 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(var(--try-out-primary-rgb), 0.6);
    }
}

@keyframes lockPulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.1) rotate(-5deg);
    }
    50% {
        transform: scale(1.15) rotate(0deg);
    }
    75% {
        transform: scale(1.1) rotate(5deg);
    }
}

@keyframes unlockTransform {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1.3) rotate(180deg);
        opacity: 0.5;
    }
    100% {
        transform: scale(1) rotate(360deg);
        opacity: 1;
    }
}

@keyframes successTransform {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    30% {
        transform: scale(1.4) rotate(-180deg);
        opacity: 0.3;
    }
    60% {
        transform: scale(1.2) rotate(180deg);
        opacity: 0.7;
    }
    100% {
        transform: scale(1) rotate(360deg);
        opacity: 1;
    }
}

@keyframes successPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes successCheckmark {
    0% {
        transform: scale(0) rotate(-180deg);
    }
    50% {
        transform: scale(1.2) rotate(0deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

@keyframes checkmarkDraw {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-45deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.2) rotate(0deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes errorShake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

/* Fade out animation */
.auth-prompt-container.fade-out {
    animation: slideUpFadeOut 0.3s ease-out forwards;
}

@keyframes slideUpFadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
        max-height: 150px;
        margin-bottom: var(--try-out-spacing);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
        max-height: 0;
        margin-bottom: 0;
        padding: 0;
    }
}

/* Dark theme adjustments */
[data-md-color-scheme="slate"] .auth-prompt {
    background: linear-gradient(135deg, var(--try-out-primary-light), rgba(var(--try-out-primary-rgb), 0.1));
}

[data-md-color-scheme="slate"] .auth-prompt::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

/* Settings Modal Auth Section */
.auth-status-emoji {
    font-size: 20px;
    display: inline-block;
    margin-right: var(--try-out-spacing-xs);
    transition: transform 0.3s ease;
    animation: lockPulse 2s ease-in-out infinite;
}

.auth-status-emoji.unlocking {
    animation: unlockTransform 0.6s ease-out forwards;
}

.auth-status-emoji.success {
    animation: successTransform 0.6s ease-out forwards;
}

.auth-test-button {
    margin-top: var(--try-out-spacing);
    padding: var(--try-out-spacing-sm) var(--try-out-spacing-lg);
    background: var(--try-out-gradient-primary);
    color: white;
    border: none;
    border-radius: var(--try-out-border-radius);
    font-size: var(--try-out-font-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--try-out-transition);
    box-shadow: 0 2px 6px rgba(var(--try-out-primary-rgb), 0.3);
    display: flex;
    align-items: center;
    gap: var(--try-out-spacing-xs);
}

.auth-test-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(var(--try-out-primary-rgb), 0.4);
}

.auth-test-button:active {
    transform: translateY(0);
}

.auth-test-icon {
    font-size: 16px;
    transition: var(--try-out-transition);
}

.auth-test-button:hover .auth-test-icon {
    transform: scale(1.2) rotate(10deg);
    animation: unlockBounce 0.5s ease-in-out;
}

.auth-test-button.loading .auth-test-icon {
    animation: spin 1s linear infinite;
}

.auth-test-text {
    position: relative;
}

.auth-header-section {
    margin-bottom: var(--try-out-spacing-lg);
}

.auth-header-section .floating-label-group {
    margin-bottom: var(--try-out-spacing);
}

.auth-test-section {
    margin-top: var(--try-out-spacing-lg);
    padding-top: var(--try-out-spacing-lg);
    border-top: 1px solid rgba(var(--try-out-border-rgb), 0.2);
}

.auth-test-section .field-help {
    margin-bottom: var(--try-out-spacing-sm);
    font-size: var(--try-out-font-sm);
    color: var(--try-out-text-light);
}

/* Responsive design */
@media (max-width: 768px) {
    .auth-prompt {
        flex-direction: column;
        text-align: center;
        padding: var(--try-out-spacing);
    }
    
    .auth-prompt-button {
        width: 100%;
        justify-content: center;
    }
    
    .auth-prompt-icon {
        width: 36px;
        height: 36px;
    }
    
    .auth-emoji {
        font-size: 20px;
    }
}

