/* ===================================
   Private Authentication Modal
   =================================== */

.private-auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.private-auth-modal {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 32px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    animation: scaleIn 0.3s forwards;
}

@keyframes scaleIn {
    to {
        transform: scale(1);
    }
}

.private-auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.private-auth-icon {
    font-size: 48px;
    color: var(--accent-blue);
    margin-bottom: 16px;
}

.private-auth-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.private-auth-description {
    font-size: 13px;
    color: var(--text-secondary);
}

.private-auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.private-auth-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    text-align: center;
}

.private-auth-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: var(--input-bg-hover);
}

.private-auth-error {
    color: var(--accent-pink);
    font-size: 12px;
    text-align: center;
    margin-top: -8px;
    display: none;
}

.private-auth-error.show {
    display: block;
    animation: shake 0.4s;
}

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

.private-auth-actions {
    display: flex;
    gap: 12px;
}

.private-auth-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.private-auth-btn-cancel {
    background: var(--glass-panel);
    color: var(--text-secondary);
}

.private-auth-btn-cancel:hover {
    background: var(--glass-panel-hover);
    color: var(--text-primary);
}

.private-auth-btn-submit {
    background: var(--accent-blue);
    color: white;
}

.private-auth-btn-submit:hover {
    filter: brightness(1.1);
}

.private-auth-btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Session Timer Badge */
.private-session-timer {
    position: fixed;
    top: 72px;
    right: 20px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 100;
    opacity: 0;
    animation: slideIn 0.3s forwards;
}

@keyframes slideIn {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.private-session-timer i {
    color: var(--accent-blue);
}

.private-session-timer.warning {
    border-color: var(--accent-orange);
}

.private-session-timer.warning i {
    color: var(--accent-orange);
}

/* Mobile */
@media screen and (max-width: 400px) {
    .private-auth-modal {
        padding: 24px;
    }

    .private-auth-icon {
        font-size: 40px;
    }

    .private-auth-title {
        font-size: 18px;
    }

    .private-session-timer {
        top: 62px;
        right: 10px;
        padding: 6px 12px;
        font-size: 11px;
    }
}
